You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gerard Quinn <ge...@barrysworld.com> on 2001/04/18 19:22:14 UTC

losing track of sessions

I am using Tomcat 4 beta 3 to develop a site.
Every so often if I have the "allow session cookies" option set in my
browser,
My sessions get lost or invalidated or something.
If I disable this option and let the server use url rewriting
my site works fine.
Does anyone know if this is a server problem or could it be a problem with
my code.
Thanks in advance.

Gerard.

RE: losing track of sessions

Posted by Gerard Quinn <ge...@barrysworld.com>.
Tassilo,
I seem to be  having the opposite problem to you.
When I enforce url rewriting it works fine but when I let the server use
session cookies occasionally, what seems like
at random, the session gets lost.
I am running Tomcat 4 beta 3 as a standalone server and it was going like a
bomb up until now.
I use no virtual hosts or anything like that.

Thanks anyway,
Gerard.
  -----Original Message-----
  From: Tassilo Pilati [mailto:tp@weboperations.com]
  Sent: 18 April 2001 19:20
  To: tomcat-user@jakarta.apache.org
  Subject: AW: losing track of sessions


  Interesting... are you using Apache ? I`m running Tomcat 3.2.1 with
Apache. When I use URL rewritting I run into problems becuase Apache does
not passover the requests to Tomcat. It gets confused with the ;jsessionid
string which Tomcat appends to an url to enforce session tracking using url
rewritting. Do you use virtual hosts ? Have you inserted any rewrite rules
into the http.conf of Apache ?
    -----Ursprüngliche Nachricht-----
    Von: Gerard Quinn [mailto:gerquinn@barrysworld.com]
    Gesendet: Mittwoch, 18. April 2001 19:22
    An: tomcat-user@jakarta.apache.org
    Betreff: losing track of sessions


    I am using Tomcat 4 beta 3 to develop a site.
    Every so often if I have the "allow session cookies" option set in my
browser,
    My sessions get lost or invalidated or something.
    If I disable this option and let the server use url rewriting
    my site works fine.
    Does anyone know if this is a server problem or could it be a problem
with my code.
    Thanks in advance.

    Gerard.

AW: losing track of sessions

Posted by Tassilo Pilati <tp...@weboperations.com>.
Interesting... are you using Apache ? I`m running Tomcat 3.2.1 with Apache.
When I use URL rewritting I run into problems becuase Apache does not
passover the requests to Tomcat. It gets confused with the ;jsessionid
string which Tomcat appends to an url to enforce session tracking using url
rewritting. Do you use virtual hosts ? Have you inserted any rewrite rules
into the http.conf of Apache ?
  -----Ursprüngliche Nachricht-----
  Von: Gerard Quinn [mailto:gerquinn@barrysworld.com]
  Gesendet: Mittwoch, 18. April 2001 19:22
  An: tomcat-user@jakarta.apache.org
  Betreff: losing track of sessions


  I am using Tomcat 4 beta 3 to develop a site.
  Every so often if I have the "allow session cookies" option set in my
browser,
  My sessions get lost or invalidated or something.
  If I disable this option and let the server use url rewriting
  my site works fine.
  Does anyone know if this is a server problem or could it be a problem with
my code.
  Thanks in advance.

  Gerard.

Re: losing track of sessions

Posted by Kief Morris <ki...@kief.com>.
Gerard Quinn typed the following on 06:22 PM 4/18/2001 +0100
>I am using Tomcat 4 beta 3 to develop a site.
>Every so often if I have the "allow session cookies" option set in my browser,
>My sessions get lost or invalidated or something.
>If I disable this option and let the server use url rewriting 
>my site works fine.
>Does anyone know if this is a server problem or could it be a problem with my code.

Dumb question: are you sure it isn't expiring due to idle time? Does the session 
get lost in the middle of actively clicking through your application, or only when
you turn your attention to something else?

Other factors: what browser/version/platform, are you crossing to/from HTTP/HTTPS?