File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android this week in the Android 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: 12982
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.
It is sorta covered in the JavaRanch Style Guide.
subject: cookies
It's not a secret anymore!