This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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: 32609
    
215

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


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, 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
 
It's not a secret anymore!