By default you will get a session.

<%@ page session="false" %>

Will prevent a session from being created.

paul wrote:

> Why does the generated JSP code always create a session?  This seems like a
> waste to me, every hit to a JSP page causes a new session to be created
> because of the following code:
> 
>         HttpSession session = pageContext.getSession();
> 
> This creates a new session even if it is never used.
> Even our logout page creates a new session!
> 
> Is this intentional?  Do other JSP containers do this?
> 
> Thanks,
> Paul
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to