Skip to main content

URL Rewriting

Learn URL Rewriting (Session Management, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes URL rewriting keeps the session id in the URL, for example /cart;jsessionid=ABC123 , for browsers that block cookies. Encode links : call response.encodeURL(url) ; it appends the id only when the container needs it. Fallback only : containers use cookies first and add the id to URLs when no cookie came back.

More lessons in Session Management