Tuesday, November 29, 2011

How can I enable session tracking for JSP pages if the browser has disabled cookies?

We know that session tracking uses cookies by default to associate a session identifier with a unique user. If the browser does not support cookies, or if cookies are disabled, you can still enable session tracking using URL rewriting. URL rewriting essentially includes the session ID within the link itself as a name/value pair.:The simple answer to this question is to use URL Rewriting by using response.encodeURL("some jsp") in a scriptlet as:
Category:JSP Interview Questions

No comments:

Post a Comment