tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark W. Webb" <m...@dolphtech.com>
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:

>Hi,
>
>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
>requests.
>
>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?
>
>Thanks,
>Peter
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message