Servertec Cookie Tester Servlet
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
How To
Change Log
Future Plans
Knowledge Base
Documentation
Examples
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
C++ .NET
C# .NET
J# .NET
Visual Basic .NET
JavaServer Pages
Legal
Contact Us

 

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 ] [ run ]

 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Sun Sep 04 14:57:20 EDT 2005