i was able to solve the problem, by recognizing that JRun implements the
setmaxinactivetimeout method in milliseconds, not seconds.  i had set the
session to timeout (i thought) in 10 minutes by passing 600 into that
method, but it was actually timing out in 600 milliseconds.  the putValue
statements were actually an act of desperation as i was trying to debug..
so where i thought the session variables were getting lost, the whole
session was just timing out before i could click to another page.  the api
says that method should be implemented in seconds, but for some reason
livesoftware did it in milliseconds, causing me several days of grief.

thanks for yor help..it is much appreciated.

>From: "Mike McKechnie" <[EMAIL PROTECTED]>
>To: "Bradley McLain" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>Subject: Re:      problem with sessions and jsp
>Date: Wed, 1 Mar 2000 15:22:29 -0500
>
> >
> > as i said before, this works about 60-70% of the time, and the subsquent
> > page will successfully extract 'userName' and assign it to 'foo'.  but
>other
> > times the value isn't there and foo is null, throwing a
>nullpointerexception
> > when i try to put it back into the session.
> >
>Note that "putting it back in the session" is unnecessary. The getValue()
>method doesn't remove an object reference from the session object, it just
>gets a copy of the reference. Only removeValue() removes the reference.
>
>So, as a first step, take out the code that does a putValue except where
>you
>wish to associate the key "foo" with a different object.
>
>_3
>M
>
>
>
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to