Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can anybody explain me

 
chandraiah chintakayalu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
can anybody explain me this content
"URL rewriting kicks in ONLY if cookies fail, and ONLY if you tell the response to encode the URL"


Thanks in advance,
Chandraiah
 
Anand Bhatt
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both are session management mechanism.The Container first rely on Cookies for session management and if somehow cookies are not working(client disable the cookie in browser),then container use URL rewriting for session management and that happen or comes in action only if all the URLs in the dynamic pages are encoded using the HttpServletResponse's encodeURL(java.lang.String url) method .This method automatically append a ID with all the URLs and with further request from client that ID will be returned in request header. So that container can still manage session even if cookies are disable.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic