Servertec   Session Tester Servlet
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Add-ons
How To
Change Log
Future Plans
Knowledge Base
Documentation
Samples
Hello World
Display Arguments
Display Headers
URL Redirect
CGI Tester
SSI Tester
Servlet Tag
Servlet Chaining
Log
Cookie Counter
Cookie Tester
Protected Page
List Employees
Connection Pool
Simple Form
Dump Form
Page Counter
File Upload
Session Tester
Context Tester
Sales
Legal
Feedback

 

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 any existing session.

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.

[ view source ] [ run ]

 top of page
 Built with iScript Copyright © 1997-2000 Servertec. All rights reserved.
Last Modified: Thu Aug 10 13:07:08 EDT 2000