I want to use url rewriting as the default mechanism for maintaining the session ID rather than make use of a cookie. How do I enable this when creating a new session with JSP or servlets?
Mobushir Hingorjo This cannot be done automatically. There are no properties (in the web servers that I have used) or APIs that would make a servlet or JSP use url rewriting instead of cookies. URL rewriting needs to be done manually. That is, you need to create a session and then send that session id through URL rewriting in the servlet response. Subsequently, you need to retrieve the session id from the form field in the request and retrieve the session object using that id.