tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <mailing-tomcat-u...@schoenhaber.de>
Subject Re: JSPs forcing session ID to be created?
Date Sun, 25 Jun 2006 11:20:12 GMT
Michael Rimov wrote:
> I was working on a front controller that wouldn't instantiate a session
> unless absolutely necessary - (for scalability reasons)  --   To my dismay,
> I was seeing a session created anyway.
>
> After some debugging, I came across the source of my problem:
>
> The following JSP will generate a session token:
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
> <html>
[...]
>
> Is this really by design?  Bug?  Obviously, I'd rather not have a new
> session created until I need it.
>
> Is this situation submittable as a bug or am I misusing the library?

Try adding something like
<%@ page session="false" %>
to your JSP.

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message