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

Return

 

This example allows creating, updating and displaying client-side cookies.

Where cookies are key, value pairs.

The Servlet displays a form that can be used to enter new and modify and remove existing cookie key, value pairs.

Clicking on Set Cookie adds a new cookie or updates and existing cookie and clicking on Remove Cookie removes the existing cookie.

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

[ view source ]

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