| Author |
Can anybody explain me
|
chandraiah chintakayalu
Ranch Hand
Joined: Aug 30, 2007
Posts: 32
|
|
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
|
SCJP-5 86%,SCWCD-soon
|
 |
Anand Bhatt
Ranch Hand
Joined: May 30, 2007
Posts: 187
|
|
|
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.
|
 |
 |
|
|
subject: Can anybody explain me
|
|
|