Why not implement the HttpSessionListener and handle session timeouts
from that perspective?  I've had success using this method, but don't
know if that will work for your scenario...HTH

  ----- Original Message -----
  From: "Brian Blount"
  To: users@tomcat.apache.org
  Subject: Detecting Session Timeout in Tomcat
  Date: Fri, 14 Oct 2005 07:55:13 -0700 (PDT)


  Hello,

  I need to be able to distinguish between a session
  timeout vs the first time someone accesses my web
  application. Within a single web application, I've
  been able to use the following logic:

  (request.isRequestedSessionIdValid() == false &&
  (request.isRequestedSessionIdFromCookie() ||
  request.isRequestedSessionIdFromURL()))

  However, I am running multiple web applications with
  single-sign-on enabled between them, so when I first
  navigate from one web application to the next, the
  above expression evaluates to true even though my
  session has not timed out.

  Is there a better way of detecting session timeouts in
  tomcat?

  Thanks in advance for any help,
  Brian



  __________________________________
  Yahoo! Music Unlimited
  Access over 1 million songs. Try it free.
  http://music.yahoo.com/unlimited/

  ---------------------------------------------------------------------
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to