Len - Ahh, nice to know it's not my imagination. Well never mind, I just
wrote a
kludge to work around it for now.

Tim - Thanks for the reply but I test stuff using Spring's mock objects so
no actual JSP's are involved, anyway seems it is broke in some cases.

Andy.


-----Original Message-----
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 15 November 2005 11:56
To: Tomcat Users List
Subject: Re: request.getSession(false) incorrectly creates a session


If you are using jsp - you need <[EMAIL PROTECTED] session='false'%> in your 
page
otherwise - a session is created for your whether you use it or not.

-Tim

Andy wrote:
> Hi,
>
> When I deploy my web app and call request.getSession(false), according to
> the
> javadoc, if a session does not exist null is returned. However I'm getting
> an
> object returned when I have not created a session myself.
>
> The object is an instance of this class -
>
> org.apache.catalina.session.StandardSessionFacade
>
> As a result my unit tests, using mock objects, all work fine, but when I
> deploy my  application it breaks because a session is created incorrectly,
> it seems to me.
>
> I'm using Tomcat 5.5. Anybody care to enlighten me?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to