tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark W. Webb" <>
Subject Re: Session
Date Mon, 05 May 2003 15:05:03 GMT
Are you calling getSession(true) or getSession(false) ?

Should be using getSession(false) for all servlets except entry points 
into your app.

Peter Kirk wrote:

>can someone help me with Sessions?
>If I run my servlet on a Tomcat on my "localhost" then my session-tracking
>works as I exepect - that is, I can set and get attributes across several
>But If I run my servlet on a Tomcat on another machine over a network, then
>the session-tracking does not do as I expect - if I put an object, then I
>cannot get it on the next request. (Actually, a new Session object is
>generated for each request).
>Does anyone have a suggestion as to what the difference could be?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message