This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Session object 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 » Servlets
Bookmark "Session object" Watch "Session object" New topic
Author

Session object

Chris Salivar
Ranch Hand

Joined: May 25, 2001
Posts: 34
Where is the session object stored, on the client or on the app server?
TIA
- Chris
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
The servlet container (engine) handles storage of session objects. The individual client belonging to a session is determined by either a cookie stored on the client browser or URL-rewriting in pages served by the servlet container.
Bill

------------------
author of:
Chris Salivar
Ranch Hand

Joined: May 25, 2001
Posts: 34
Where is the session object stored by the container, on the client machine or the machine hosting the app/web server ?
TIA
- Chris
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
The session object lives in memory on the servlet container or is serialized to a database or disk file on the servlet container.
How in the world could it possibly be stored any other way? A server can't just reach out and do arbitrary things to a client.
Bill
 
 
subject: Session object
 
Similar Threads
Sharing of session objects across two web applications running on same server instance
Remember User ID in Login Page
Session
session ID changes
getSession(false);