Title: RE: session object in jsp

Yes, just use this at the top of your page:

<%@ page session="false" %>

-----Original Message-----
From: C Tang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 9:55 AM
To: [EMAIL PROTECTED]
Subject: session object in jsp


I have a question about session object.  In servlet, session
is not created until getSession() method is called.
In JSP, the implicit object is instantiated automatically, even
if no session is desired.

My web site contains lots of jsp pages.  Most of them are just
publication that is for general browsing and no session is needed
for them.

How much is the performance hit by creating session?
Is there a way to turn session off in jsp page?

Thanks!

ct

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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