Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes Cookies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
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: 8839
    
    7

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
Cookies and HTTPSession
Cookies and session tracking
Help needed in designing a jsp
how to track an url when a user clicks on it using cookies
payment gateway integration