• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cookies  RSS feed

 
Amy Phillips
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea where the best place to post this is no I will look here...
Can anyone tell me anything about cookies (the web kind not biscuit :roll: ). I have never used them before so I have no idea of the issues involved I really am at the very beginning so please be gentle.
Ta
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amy,
This probably should be posted on the JSP or Servlets forum, but I'll try to give you an answer. HTTP is what is known as a stateless protocol. No information can be stored about a particular client with just the protocol. Essentially, a client makes a request for a particular resource, the server sends that resource back to the client and the connection is closed. This paradigm really sux for ideas like a shopping cart. So cookies were invented. In essence, a cookie is nothing more than a small text file containing pertinent data about a particular client. What data? Whatever data the server thinks is appropriate: a session id, a username, account number, etc. Your browser keeps up with the cookies and where they came from, so that if you revisit that site, then the server has access to them.
 
Dorothy Finkel-Laverty
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a pretty simple to follow tutorial on "generic" cookies, which I have found greatly enhances my student's understanding of java cookies: http://www.htmlgoodies.com/beyond/cookie.html
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!