----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Thanks for the help,
I see what you are saying and I tried it.  My variable we still lost
between sessions.  I'm starting to think that some server/configuration
isn't set, but I don't know which.  In my web searches, I seem to be the
only one having this problem.  My program is an example from Java
Servlet Programing from OReilly.  So maybe its not the code but the set
up?  I'm kinda new to Linux and configuration can be difficult because
its hard to know where to poke.

Once again thanks much,
Krister



Andras Balogh wrote:
> 
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
> 
> Hi,
> 
> I am not sure that i am corect but i allways use session like this:
> 
> /*
> looking for an allready created session
> */
> HttpSession session=req.getSession(false);
> if(session==null) session=req.getSession(true); /*create the session*/
> 
> I think that calling req.getSession(true) will create a new session.
> Am i wrong ??
> 
> Best wishes,
>                 Andras.


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to