File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Session without Cookie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session without Cookie" Watch "Session without Cookie" New topic
Author

Session without Cookie

Mathias Andrae
Greenhorn

Joined: Feb 04, 2002
Posts: 23
Can anybody give me some sourcecode for a servlet which handles sessions with URL-rewriting and EXPLICITELY WITHOUT cookies.
Thanks.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Check out chapter 9 of Marty Halls Core Servlets & JSP book at www.coreservlets.com
Remember that if cookies are not disabled the servlet will use cookies for session tracking. It switches to URL-rewriting (if you coded for it), only if cokies are disabled.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Mathias Andrae
Greenhorn

Joined: Feb 04, 2002
Posts: 23
Thanks for your fast answer.
But I have to request again.
Is there really no way to prevent cookies while coding the servlet???
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Session without Cookie