You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lucas Ludvig <jo...@hotmail.com> on 2000/08/09 14:29:03 UTC
Sessions failing...
Hello-
I am having a problem with sessions that likely has nothing to do with the
code and everything to do with Tomcat configuration, I hope. Here are the
details. Any insight or help in the matter is greatly appreciated.
-A session is created in one servlet and objects are stored using
setAttribute()
-This servlet calls another servlet on the same machine in the same context.
This new servlet accesses the session using req.getSession() and the
stored objects using getAttribute()
-All the objects are null and worthless in the second servlet
-session.isNew() returns true and cookies are on in the browser
-isRequestedSessionIdFromCookie() and isRequestedSessionIdFromURL() are both
false
-isRequestedSessionIdValid() is true
-The exact same code works fine on 8 out of 9 machines, but not on the one
in question. And this code did work at one time on this particular machine.
Any ideas? Sessions have failed me in a similar matter before. Thanks for
your help and comments.
Luke Ludwig
West Group
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
Re: Sessions failing...
Posted by ar...@india-today.com.
Hi lucas
I had encountered a similar problem a few days back and that was mainly because of a faulty mod_jserv.so
I think u can check whether u havethe right mod_jserv.so file
Hope this helpss
Anand Raman
Yesterday Lucas Ludvig said
>
> Hello-
>
> I am having a problem with sessions that likely has nothing to do with the
> code and everything to do with Tomcat configuration, I hope. Here are the
> details. Any insight or help in the matter is greatly appreciated.
>
> -A session is created in one servlet and objects are stored using
> setAttribute()
> -This servlet calls another servlet on the same machine in the same context.
> This new servlet accesses the session using req.getSession() and the
> stored objects using getAttribute()
> -All the objects are null and worthless in the second servlet
> -session.isNew() returns true and cookies are on in the browser
> -isRequestedSessionIdFromCookie() and isRequestedSessionIdFromURL() are both
> false
> -isRequestedSessionIdValid() is true
> -The exact same code works fine on 8 out of 9 machines, but not on the one
> in question. And this code did work at one time on this particular machine.
>
> Any ideas? Sessions have failed me in a similar matter before. Thanks for
> your help and comments.
>
> Luke Ludwig
> West Group
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>