aspose file tools*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "session tracking" Watch "session tracking" New topic
Author

session tracking

Arunabh Dash
Greenhorn

Joined: Apr 05, 2006
Posts: 20
hi,
I have some doubts regarding session in a servlet.
How can i distinguish different user request when every "request" in the servlet can have different session(what i know). I mean in different servlet the request will be different thus session is also different.

SO when i set the data in one session of certain request then will i be able to retrive it from the session of some different request???
Can any one explain the stuff nicely or tell me if i m wrong in my understanding.
with regards
Arunabh
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Arunabh Dash:
I mean in different servlet the request will be different thus session is also different.


No.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Multiple requests from the same browser within a given value will all share the same session.
That's what makes it a session.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session tracking