You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jason Eaton <ja...@jungawunga.com> on 2000/09/29 03:16:28 UTC
Session Variables - JSP Engine
We are having a problem carrying over session variables from one html page
to the next. We are using the JSP calls setAttribute and getAttribute but
the values are not available from one page to the next within a short
timeframe like 1 minute.
What could be the problem?
Thanks.
-----------------------------------------------------
Jason Eaton
Jungawunga Inc.
http://www.jungawunga.com
103B Whispering Pines Road
Scotts Valley, CA 95066
p 831.438.0475
m 408.858.5585
Re: Session Variables - JSP Engine
Posted by Raimee <ra...@sympatico.ca>.
I have a similar problem maintaing session objects between get requests from
an applet.
The sessionId changes between successive requests, three four and five times
before
it (request.getSession(true)) returns the correct session. I keep an
"session.isLogged"
flag in the session to signify a user who has already logged on. When the user
logs
on I also bind a database connection to the session. The repeated calls to the
service
method where I create sessions causes unneccessary creation of new db
Connections.
Jason Eaton wrote:
> We are having a problem carrying over session variables from one html page
> to the next. We are using the JSP calls setAttribute and getAttribute but
> the values are not available from one page to the next within a short
> timeframe like 1 minute.
>
> What could be the problem?
>
> Thanks.
>
> -----------------------------------------------------
> Jason Eaton
>
> Jungawunga Inc.
> http://www.jungawunga.com
> 103B Whispering Pines Road
> Scotts Valley, CA 95066
> p 831.438.0475
> m 408.858.5585