You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Robin Green <gr...@hotmail.com> on 2000/10/12 00:20:01 UTC

Re: HttpSession object and XSP pages

Matthew Cordes <mc...@maine.edu> wrote:
>Is there any reason why creating a session in 1 xsp page ala
>
>	session = request.getSession( true );
>
>works, but in a different page ( that the first one refers to )
>doing:
>
>	session = request.getSession( false );
>
>always returns null? Or
>
>	session = request.getSession( true );
>
>in the second page returns a different session object w/ a different
>session id.
>
>
>I guess what I'm asking is, does the session persist between xsp pages
>that are within the same context?  I'm pretty sure it should.

Yes, it should. I've had redirects and sessions working with no trouble on 
Resin. (Also you don't get that annoying tomcat/msie bug where two pages are 
sometimes sandwiched together with a HTTP header in the middle if you do a 
redirect.)

Are you absolutely sure they're both in the same context?



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


Re: HttpSession object and XSP pages

Posted by Matthew Cordes <mc...@maine.edu>.
> Yes, it should. I've had redirects and sessions working with no trouble on 
> Resin. (Also you don't get that annoying tomcat/msie bug where two pages are 
> sometimes sandwiched together with a HTTP header in the middle if you do a 
> redirect.)
> 
> Are you absolutely sure they're both in the same context?

I was in error.  The machine I was on had a version of tomcat prior to
3.1.  I upgraded and all is well. Thanks for the help.

-matt