Home arrow Java & J2EE arrow Saving Client State with Cookies and Java

Saving Client State with Cookies and Java

Cookies serve as a facility for servers to send information to a client.†† This information is then housed on the client, from which the server can later retrieve the information.†In this article, we will study the concept of saving client state with cookies using Java Servlets.†Iíll walk you through an end to end example where you will store and retrieve data using cookies.

  1. Saving Client State with Cookies and Java
  2. Some Background Information About Cookies
  3. Setting Cookies on Your Client
  4. Grabbing Cookies From Your Client
  5. Throwing JavaScript Into the (Cookie Dough) Mix
  6. Cleaning Up: Getting Rid of Cookie Crumbs
By: Kulvir Singh Bhogal
Rating: starstarstarstarstar / 57
March 24, 2004

print this article



This article is not intended to teach you about Java Servlets;  I am assuming that you have a decent background knowledge of the subject.  If this is not the case, you may want to take a look at the articles referenced in the resources section of the article (last page)before moving on.

You will need an application server to run the servlets you create. To do my experimentation, I used IBM WebSphere Studio Application Developer. This powerful product acts as integrated development environment (IDE) in which you can build, test, and deploy your application. Embedded within the product is also a WebSphere Test Environment, in which we can deploy our web applications for testing.  Of course, you can also deploy to Apache Tomcat or some other application server, but within Application Developer, you never have to leave your development environment. You can learn more about IBM WebSphere Studio Application Developer here.

>>> More Java & J2EE Articles          >>> More By Kulvir Singh Bhogal

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- More Java Bugs Lead to More Attacks
- Oracle's Java One Brings News, Surprises
- Oracle Patches Java Runtime Environment
- Apple Syncs Java Update with Oracle
- Spring 3.1 Java Development Framework Compat...
- Jelastic Java PaaS Availability and Pricing ...
- NetBeans 7.1 Released, Supports JavaFX 2
- SolarWinds Releases Newest Version of Java M...
- Free Monitoring Tool for Java Apps on Heroku
- Heroku Adds JCloud Platform Support, Java 7 ...
- Java SE 8 Speculation in Full Swing
- Java SE 7 Now Available
- New JVM Language and Java Reporting Tool
- Java 7 Release Update and New Eclipse Toolkit
- The Best Java Netbeans IDE Plugins

Developer Shed Affiliates


Dev Shed Tutorial Topics: