This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cookies vs URL rewriting  RSS feed

 
Nivedita Thakur
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

There is a case where the container detects that browser has disabled cookies, so it falls back to URL rewriting for session management; does this mean container no longer uses the "Set-Cookie" header for Session ID in the response?
 
Amaan khan
Greenhorn
Posts: 14
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you use url rewriting the container does'nt use set-cookie again. Its a different methodology altogether.
Use Session in servlets as a replacement to that.
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

First container check if your browser no longer support cookie then only container not set cookie value.

So, container first prefer cookie if not support cookie then only use URL rewriting, and append jsessionid to URL.

 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!