Manish Verma wrote:

> I am working on some Session persistence stuff and I using HttpSession
> object for that but I am wondering how it gets stored. In the memory,
> cookies or temp files ? What are the limitations and what are the server and
> client requirements ? Can anyone help me there ?
> Thanks in advance
>

The session data itself is stored in the JVM that the server is running in.  From
an overly simplistic viewpoint, you can think of the servlet engine having a
Hashtable of all the currently active sessions (keyed by session ID).  Inside each
HttpSession object, there is another Hashtable that contains the values you store
with putValue().  The only thing sent to the client is the session ID (normally
sent as a cookie).

The servlet trail in the Java Language Tutorial
(http://java.sun.com/docs/books/tutorial), plus pretty much any of the servlet
related books on the market, will explain these concepts in more details.

>
> Manish Verma
> Consultant
> CASE Masters, Inc.
>

Craig McClanahan


>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to