aspose file tools*
The moose likes Servlets and the fly likes Cookies vs HttpSession values? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookies vs HttpSession values?" Watch "Cookies vs HttpSession values?" New topic
Author

Cookies vs HttpSession values?

Jeppe Sommer
Ranch Hand

Joined: Jan 07, 2004
Posts: 270
I have made an application which use HttpSession values to store the user data of the users being logged into the system.

If I change my browser settings to block for all cookies, it seems that the web application loose all the session values and throws a null pointer exception.

Do session values correspond to cookies?

I have a webbank where it is possible for me to log into the system, in spite of I have blocked for all cookies. How do this application store the user data?
Naeva Darley
Greenhorn

Joined: Jan 17, 2006
Posts: 2
Usually cookies are used to exchange session ID between client and servers. If your client doesn't accept cookies, then your application needs to use URL rewriting to work with session.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookies vs HttpSession values?