Sessions (still) timeouts too early

2000-09-13 Thread Mattias Arbin

Hi,
I have read some postings about http sessions that timeout too early and I
seem to have the same problem.
I have two web-sites, one with SSL and one without.
The first time one enters the SSL site, the timeout time seems to be about a
minute or less, even if I have set
session-config
session-timeout60/session-timeout
/session-config
in my web.xml and
default-web-app load-on-startup="true" application="knut" name="knut-web"
shared="true" /
in my xxx-web-site.xml

It seems like the premature timeout only occurs after the first time I call
the servlet that creates the session, i.e
...
HttpSession session = req.getSession(true);
session.setAttribute("myBean",new MyBean());
...

If I call the servlet one more time within one minute, then after that, the
session does not timeout too early.

/Mattias Arbin, C-takt AB






Re: Sessions (still) timeouts too early

2000-09-13 Thread Mattias Arbin

 It seems like the premature timeout only occurs after the first time I
call
 the servlet that creates the session, i.e
 ...
 HttpSession session = req.getSession(true);
 session.setAttribute("myBean",new MyBean());
 ...

 If I call the servlet one more time within one minute, then after that,
the
 session does not timeout too early.
I just noticed that the above is not true. The sessions sporadically timeout
too soon even after a few requests.