NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes

Visitor Rating

Web server sends to a browser
12213 Web server sends to a browser http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-Cookies.html 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.
Java > Tips and Tutorials > JSP and Servlets > Cookies and Sessions Oct 12, 2006

Write a Review   Add to My Favorite   Refer it to Friend   Report Broken Link  

Bookmark Web server sends to a browser:


Other links at Java > Tips and Tutorials > JSP and Servlets > Cookies and Sessions
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:

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:




Main Category
203
2047
830
288
175
1805
1619
915
1181
7600
72
922
60
2253
176

Join Mailing List
Joining mailing list will entitle you to receive occasional emails informing you of news and updates to the site and any special offers that may be of interest to you.



Top 10
Directory Statistics

Links: 20112
Categories: 1275
Registered Users: 816
Mailing List Subscribers: 2050
Unique Outgoing Hits: 236482

Pagerank Statistics
PR 10
1 site(s)
PR 9
7 site(s)
PR 8
58 site(s)
PR 7
178 site(s)
PR 6
638 site(s)
PR 5
1620 site(s)

PHP News