This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes Where is websphere http session cookie stored Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Where is websphere http session cookie stored" Watch "Where is websphere http session cookie stored" New topic
Author

Where is websphere http session cookie stored

Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
Hello All
Where is websphere http session cookie stored inour local machine if i send a request to the Websphere application server for a url


SCJP, SCWCD, SCBCD, SCEA 5
WarnerJan Veldhuis
Greenhorn

Joined: Sep 27, 2002
Posts: 9
Session cookies are in-memory cookies, so you probably would't find them on disk...
Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
Thanks
In memory cookies, I thaught that a cookie is created by the server in the users local machine to point to session id. And when the client sends the next request then the browser will send the sessionid along with the request to create server and session affinity. In Memory cookie?
Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
Thats how i thaught HTTP session Management works , Please correct me if I am wrong?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

That's correct.
The cookie is send from the server as a response header.

The browser stores the cookie in memory and sends it as a header in all subsequent requests.

You can see all of this by downloading and installing hte HttpLiveHeaders plugin:
http://livehttpheaders.mozdev.org/


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
Thanks
That explains it. Now we have performance testing going on right now using
Load Runner. The issue is there are 2 injector servers doing IPSPOOFING to generate around 30 IP addresses and send requiest to the server. I am not sure what will be the name of the cookie which is created in this case with load runner. The question here is is there any posibility of sessions of different users getting mixed up when we run it for around 50000 transactions within 1 hour.
Thanks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I am not sure what will be the name of the cookie which is created in this case with load runner.

Here is a typical response from a Tomcat server



This was grabbed with the liveHttpHeaders plugin that I spoke of earlier.
[ June 16, 2005: Message edited by: Ben Souther ]
Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
Thanks Ben
Did you read my situation with Load runner in previous quesiton. Can you shed your lights on that would really appeciate

Thanks
Farouk
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I've never used loadRunner and haven't touched websphere in years so I can't really help you.

Someone else may chime in.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Unless you're using LTPA authentication, in which case the session cookie exists, but session state is actually carried in a separate (encrypted) LTPA-TOKEN cookie
 
jQuery in Action, 2nd edition
 
subject: Where is websphere http session cookie stored