• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how sessions are implemented on server

 
Rr Kumaran
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can anyone please tell me how sessions are implemented on server like JRun, WebLogic, WebSphere or in general ?

Thanks & Regards,
Kumar.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A session (HttpSession) is a kind of collection object whose life cycle is managed by the servlet container. It consists of a collection (think Map) that holds Object references indexed by String keys, plus a bunch of bookkeeping variables that let it track the time of last access, send events to listeners, etc..
If the objects you add to a session are serializable, the servlet container will be able to write them out to disk to save memory.
If you want to dig into the detains, look at the source code for Tomcat.
Bill
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this article for a description of how we did shared sessions in WebSphere's earlier versions. Newer versions have more options and optimizations, but it's basically the same.

Kyle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic