This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookies vs HttpSession values?" Watch "Cookies vs HttpSession values?" New topic

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

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.
rocket mass heater kickstarter
subject: Cookies vs HttpSession values?