JSP: new Session created on every access of page
From: Joe Randstein (javawocky_at_hotmail.com)
Date: 11/29/03
- Next message: Chris Smith: "Re: JSP: new Session created on every access of page"
- Previous message: Harald Hein: "Re: Is there some "standard" location for .jar files?"
- Next in thread: Chris Smith: "Re: JSP: new Session created on every access of page"
- Reply: Chris Smith: "Re: JSP: new Session created on every access of page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Nov 2003 06:45:49 -0800
Hi!
I have a little problem with my JSPs. A new session is constructed
every time the page is accessed, sure it is not working that way, as I
can't store any data that way.
I developed the code at home on Windows/Tomcat4.0.6 and it worked as
it should, but when I deployed it on a Linux server the problem
started. Every time the session has a new ID, isNew() responds with
true.
>From my observation the browser isn't getting a cookie, so it
obviously can't send back the cookie the next time it accesses the JSP
and that should explain why a new session is created every time.
But handcrafted cookies work on the Linux server and Browser, I tested
that. But I wanted to use the session API and not do the work by hand.
Does anybody have an idea what can be wrong? Is there a parameter I
can check? Or a check in the tomcat config?
Thank you very much for your responses
- Next message: Chris Smith: "Re: JSP: new Session created on every access of page"
- Previous message: Harald Hein: "Re: Is there some "standard" location for .jar files?"
- Next in thread: Chris Smith: "Re: JSP: new Session created on every access of page"
- Reply: Chris Smith: "Re: JSP: new Session created on every access of page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|