Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cookies

 
Raj Jindal
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does cookies keep track of session or
cookies help in keeping track of sessions ?
Does HttpSession internally use cookies ? If yes then why ?
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by raj jindal:
Does cookies keep track of session or
cookies help in keeping track of sessions ?

Cookies are used by web servers to keep track of individual sessions. They are small text files the web server can store on the client and request back, usually containg a unique id and sometimes some other client information. The same effect can be gained by "URL Rewriting" in which the server rewrites all the links on a page it is serving to contain a unique ID.

Does HttpSession internally use cookies ? If yes then why ?

A servlet container (web server) will use one of the above methods to track sessions. This process is abstracted by the HttpSession class.
 
Don't touch me. And dont' touch this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!