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 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" Watch "cookies" New topic


dhanu sudha

Joined: Apr 16, 2002
Posts: 11
what happens if we disable the cookies in the browser?so in this case how do we track the session?
kindly give the answer.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Since sessions use cookies or URL Rewriting under the cover, if cookies are disabled, it will resort to using URL rewriting.

So much trouble in the world -- Bob Marley
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12893
Reverting to URL rewriting does NOT happen automatically. The servlet engine will automatically recognize session ID values that appear in URLs but it is up to the programmer to encode session ids in URLs that your servlet or JSP generates.
I agree. Here's the link:
subject: cookies