> 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 servlet spec doesn't mandate how session is stored in the servlet
engine, so keeping it in memory or sending it back to the browser are
valid techniques. Another technique is to store the session is a
persistent storage mechanism.
However, there is one caveat. Since the spec says that any Object
can be stored in the session, any session technique that requires
serialization of the objects can only be done for Serializable
objects. The spec doesn't specify what to do with those objects
that don't.
> Is that how it works ?? If yes, does that also mean that as the number
> of *valid* sessions go on increasing, these session objects are gonna
> go on eating the VM memory ? Is there any limit on the memory size
> any VM can use ??
This is not only a VM issue, but an issue with the size and throughput
of the persistence mechanism. You need to determine the mechanism
of the servlet engine you are running if this is going to be an issue.
--John
___________________________________________________________________________
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