Servertec Session Tester Servlet
Samples
Cookie Tester
Protected Page
Dump Form
Session Tester
Context Tester

Return

 

This example dumps any existing session settings and values. The Servlet also displays a form that can be used to enter new and modify existing session values.

Clicking on Set Value sets/updates the existing session using the key/value specified, clicking on Remove Value removes the entered key from the existing session, clicking on Create Session creates a new session, and clicking on Remove Session removes the existing session and associated key/value pairs and clicking on Redirect Test redirects the Web browser to SessionRedirectTesterServlet.

This example uses buffered response output in order to be able to set the session cookie value. Session cookies must be sent along with the header before any other output is sent to the client's browser.

Browser cookies are used if session source is set to cookie and URL encoding is used if session source is set to url.

[ view source ]

 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Mon Sep 05 14:25:45 EDT 2005