This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes Session tracking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session tracking" Watch "Session tracking" New topic
Author

Session tracking

singh udit
Greenhorn

Joined: Mar 01, 2001
Posts: 7
Hi,
I have following doubts regarding session tracking by web server.
1. Does the session maintained at the server is unique for every browser instance, or a session is same for the requests coming from a particular machine.(JSP session is browser based or the client machine based)
2. If I am using cookies while sending my request to server , will it be different for different browser instances. If not manipulation of cookies at server side will affect all the browser instance.
Pl clear this doubt.
Thanks in advance
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
HttpSession identity is tracked by a unique ID associated with a cookie - or - a tag created by URL-rewriting. If by a cookie, it will be unique to a particular browser.
The servlet container does cookie setting and reading for you, but you have to handle URL-rewriting by your program.

Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session tracking
 
Similar Threads
Few Basic Questions
Session
Really nutty session problem. Please help :(
same session across browsers
Alternative to Cookie?