Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session without Cookie

 
Mathias Andrae
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody give me some sourcecode for a servlet which handles sessions with URL-rewriting and EXPLICITELY WITHOUT cookies.
Thanks.
 
Bosun Bello
Ranch Hand
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mathias Andrae
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your fast answer.
But I have to request again.
Is there really no way to prevent cookies while coding the servlet???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic