This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Cookies Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Cookies" Watch "Cookies" New topic
Author

Cookies

Raj Jindal
Ranch Hand

Joined: Jan 17, 2003
Posts: 50
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

Joined: Oct 29, 2001
Posts: 8291

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookies
 
Similar Threads
Help needed in designing a jsp
Cookies and HTTPSession
payment gateway integration
how to track an url when a user clicks on it using cookies
Cookies and session tracking