• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session object

 
Chris Salivar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic