Browse a Listing
Top > Java > Tips and Tutorials > JSP and Servlets > Cookies and Sessions
Popular Tags
Free Script links
Cookies are small bits of textual information that a Web server sends to a browser and that the browser returns unchanged when visiting the same Web site or domain later. By having the server read information it sent the client previously, the site can provide visitors with a number of conveniences:
Identifying a user during an e-commerce session. Many on-line stores use a "shopping cart" metaphor in which the user selects an item, adds it to his shopping cart, then continues shopping. Since the HTTP connection is closed after each page is sent, when the user selects a new item for his cart, how does the store know that he is the same user that put the previous item in his cart? Cookies are a good way of accomplishing this. In fact, this is so useful that servlets have an API specifically for this, and servlet authors don't need to manipulate cookies directly to make use of it.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 12, 2006 Hits: 0 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
This chapter describes:
What is a session, and how a JSP server uses cookies to pass an IDs to the browser to link multiple HTTP requests together as a session.
What is the session object, and what functions are available on the session object.
A sample application to show you how to pass data between JSP pages.
How Perl tools can be used to help debug JSP applications at the HTTP communication level.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Nov 13, 2006 Hits: 1 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR