1. URL rewriting is used where either a browser or a wireless device doesn’t accept cookies. In this case, session tracking isn’t possible by using cookies
  2. When the web server detects that the browser is not accepting cookies then the session ID is encoded into the hyperlinks on the webpages
  3. Web server extracts the ID from the URL address and traces out the HTTP session using the getSession() method

Example Code for URL Rewriting