tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Einfeldt" <ralph.einfe...@uptime-isc.de>
Subject AW: Session not sticking after timeout << BUG?
Date Tue, 05 Feb 2002 13:09:15 GMT
AFAIK getRequestedSessionId() should alway return somthing if there
is a session id present (cookie or url encoded) no matter wether the 
session id is valid or not.

Can you read the JSESSIONID cookie ? 

Cookie[] mCookies = request.getCookies();
if ((mCookies == null) || (mCookies.length == 0)) {
  <PrintOut>("No cookies");
} else {
  for (int i = 0; i < mCookies.length; i++) {
    <PrintOut>(mCookies[i].getName());
    <PrintOut>(mCookies[i].getValue());
  }
}

(<PrintOut> is just placeholder for your favorite way of dumping 
such information.)

May be you should try a newer version of tomcat (3.3.*/4.*) ?
(Even if it doesn't solve your problem, it might help to get help
from one of the developers if the problem persists)

> -----Urspr√ľngliche Nachricht-----
> Von: Ivan E. Markovic [mailto:ivan@sculptlight.com]
> Gesendet: Dienstag, 5. Februar 2002 13:42
> An: Tomcat Users List
> Betreff: Session not sticking after timeout << BUG?
> Wichtigkeit: Hoch
<snip/> 
>   getRequestedSessionId null
>   isRequestedSessionIdFromCookie false
>   isRequestedSessionIdFromUrl false
> 
>   Header: cookie  "JSESSIONID=01an3f46n1"
>   Header: connection  "Keep-Alive"
>   Header: ua-cpu  "PPC"
>   Header: referer 
> "http://192.168.1.4/servlets/VS/servlet/VPDFProductListServlet"
>   Header: accept  "*/*"

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message