Venu Gopal wrote:

> Hi,
>
> Is there any restriction on the size of the session?
> Like cookie have restriction that only 20 can be added
> per domain and only 4K can be the size. So is there
> any thing for session too? Or we can just keep adding?
>
> Sorry for the ignorance.
>

A session's attributes are stored in the JVM's memory space, in a Hashtable or
something equivalent.  Therefore, the only restriction is how much memory space you
make available in your server's JVM for all of the concurrently active sessions.

No matter how many such variables you have stored, the session identifier requires
only a single cookie.

> Venu
>

Craig McClanahan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to