GeeCON Prague 2014*
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30586
    
154

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 .
 
 
subject: How to append cookie parameters to URL