- 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
- When the web server detects that the browser is not accepting cookies then the session ID is encoded into the hyperlinks on the webpages
- Web server extracts the ID from the URL address and traces out the HTTP session using the getSession() method
Example Code for URL Rewriting
