Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes How to append cookie parameters to URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to append cookie parameters to URL" Watch "How to append cookie parameters to URL" New topic
Author

How to append cookie parameters to URL

Muhammad Abdul Arif
Greenhorn

Joined: Feb 04, 2012
Posts: 25
Hi All,

I am trying to build my web application url by appending cookie parameters and access that url in a new session. I tried two cases as described below.

1. I have one parameters in cookie. i.e JSESSIONID=xJFXQq7bGWGgrx1t064NFYb2J3qHXZG1Z5GhnNS21vmMmc2CMdDN!1491243947

If i create my url like below iam able to access my application in new session




2. If i have two parameters in cookie. One is JSESSIONID=xJFXQq7bGWGgrx1t064NFYb2J3qHXZG1Z5GhnNS21vmMmc2CMdDN!1491243947 and other is

If i create my url like below iam not able to access my application in new session. Its directing me to login page



Is this the right way of passing multiple parameters of cookie in url?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

I don't understand. Is BIGipServerAbc a cookie as well? Or a regular request parameter?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Muhammad Abdul Arif
Greenhorn

Joined: Feb 04, 2012
Posts: 25
Its the cookie. In fiddler i can see two parameters in cookie. One is JSESSIONID and second is BIGipServerAbc .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to append cookie parameters to URL
 
Similar Threads
packaging and deploying jax ws (webservice) in multiple servers
How to set cookies for HTTPS?
JSP and deployment
cookie setting in HTTPS
How tomcat keep session