You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by bi...@mac.com on 2002/11/18 07:26:50 UTC

Request Does Not Include Session Id - Why?

For some odd reason the JSP session id is not being written to the  
request object and therefore I get null pointer errors when I try to  
reference session objects within a servlet.  Please note that, I do not  
want to send the client session in the URL.  I tried several different  
browsers  IE, OmniWeb, Chimera, Mozilla. The problem seems to be  
browser independent. Is this a Tomcat 4.1 security issue? I'm very  
confused since I thought that JSPs provide behind the scenes session  
management via cookies.  Too make matters even stranger, every once in  
a while the JSP will work correctly... I still haven't figured out the  
reason... I guess every once in a while the client and server session  
ids match by coincidence -ouch!

Here's a print out of my log messages (note that the request is passed  
correctly, the dates below come from the client)

************************************************************************ 
***************
JSP Session id: 3F6FC46A183303B69EC4E8097528159E
Request Session id: null
Servlet Active Session id: F8568A66D6EF4BE71AC8AD37FF0921C7
Servlet Active Session new?: true
Is Requested Session Valid? false
Is Requested Session from Cookie? false
Is Requested Session from URL? false
FromDate : Oct/10/2002
ToDate : Oct/19/2002

Any help will be greatly appreciated.

Thanks!
-FB


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>