Shashank Phadke wrote:
>
> Hi --
>
> This can be extension to the question about where the session id is
> stored.
>
> Where do the servlet engines store the objects put into your session.
> Do they keep it in the VM memory ?? Or is it only part of the cookies
> sent to the browser ??
The session data is stored somewhere on the server side, never in cookies
sent back to the browser. Even though it may not be explicit in the spec
it has to be done on the server-side in order to fulfill the promises
regarding time-out and event notification.
If it's stored in the servlet engine's memory, in some session manager's
memory in a differen VM, in files, in a database, etc. is up to each
servlet engine to decide. Some for instance let you set the max number
of sessions to keep in memory and serialize to disk when this number
is reached. It's therefore a good idea to always make sure the objects
you put into the session can be serialized.
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html