aspose file tools*
The moose likes Servlets and the fly likes HttpSession and Cookies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HttpSession and Cookies" Watch "HttpSession and Cookies" New topic
Author

HttpSession and Cookies

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Hi All,

Where is the session info stored if we are using HttpSession and Cookies?/

Thanks.


Be Humble... Be Nice.
Uli Hofstoetter
Ranch Hand

Joined: Nov 24, 2006
Posts: 57
The session is stored on the server.

The cookie is stored on the client browser and is used to match the client request to the according session.


SCEA5, Certified ScrumMaster
Angel Taveras
Ranch Hand

Joined: Nov 13, 2008
Posts: 84

Also the session info could be stored in a token in the url. You could do this to disable the session cookie.

Regards,
[ December 23, 2008: Message edited by: Angel Taveras ]
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Thanks Uli and Angel for replying
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpSession and Cookies
 
Similar Threads
Sessions without cookies
Cookies
does request.getSession().setAttribute work if cookies disabled
Why use stateful bean.
Difference between HTTPSession & Cookies