tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lester June Cabrera <lester.cabr...@vinciworks.com>
Subject Re: Session Problem
Date Thu, 20 Sep 2001 11:00:16 GMT

Try this one inside your JSP page...

         if (session.isNew()) {
                 // do something
         } else {
                 // ...
                 String sessionUser = (String)session.getValue("username");
                 // do something
         }


At 04:17 PM 9/20/01 +0530, you wrote:
>Hello Tomcats,
>
>I have a problem with tomcat 4.0. I would like
>to know if anybody else has experienced this.
>
>I am creating a session with getSession(false) in my
>first page and then in the subsequent pages when I
>call the session using getSession(true), tomcat is
>creating and returning a new session.
>
>The same code is working fine with tomcat323 i.e I get
>the session which was created in the first page.
>
>Could somebody through some light on this.
>
>Razi
>
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


============================
Lester June Cabrera
Chief Programmer
VinciWorks
29F 88 Corporate Center
Valero St., Salcedo Village
Makati City
Tel: +632-889 6303
Fax: +632-889 6287
Email: lester.cabrera@vinciworks.com
Mobile: +63915-7120430
============================


Mime
View raw message