Link Rewriting to implement Sessions - Servlet

The purpose of this assignment was to:

The description and my solution of the Link Rewriting to implement Sessions Servlet -assignment can be viewed and/or downloaded at the bottom of this page.

Why use link rewriting?

There are a few techniques to implement sessions. URL/Link rewriting is one of the safer ones since most clients/browsers support this technique. Cookies could also be used to implement sessions, but not all clients support and/or allow the settings of cookies.

Often cookies are used as a first choice, and link rewriting as a second. Link Rewriting will then be used for clients/browsers that has cookies disabled or doesn't support them.

Assignment Description

Create two HTML documents, one with two links with two different name/value - pairs to a servlet, and one with two links with two different name/value - pairs to yet another servlet.

When one of the links in the first document is clicked the second document should be displayed. Information about what link has been clicked should be transfered to the links in this second document.

Finally, when one of the links in the second document is clicked, information about both clicks should be displayed.

My Solution, Assignment Files

Try the Sessions, Link Rewriting Servlet

«  Previous Next  »
Loading