Matt Goss wrote:
>
> John,
> the getSession(false) only returns a session if it is not a new one (ie
> if request is from another page inside the application). getSession(true)
> always returns a session.
> Matt Goss
>
> "John Clark L. Naldoza" wrote:
>
Thanks Matt,
I am using getSession(false), but I still get a session even when it is
my first time accessing the browser...
i.e.
if( getSession(false) == null )
{
System.out.println( No Session );
}
else
{
System.out.println( "Has a session" );
}
Mine would print out has a session...;-(
are there any extra settings in the server.xml or web.xml that I should
know about?
Thanks in advance..
--
/) John Clark Naldoza y Lopez (\
/ ) Software Design Engineer II ( \
_( (_ _ Web-Application Development _) )_
(((\ \> /_> Cable Modem Network Management System <_\ </ /)))
(\\\\ \_/ / NEC Telecom Software Phils., Inc. \ \_/ ////)
\ / \ /
\ _/ phone: (+63 32) 233-9142 loc. 3112 \_ /
/ / cellphone: (+63 919) 241-4612 \ \
/ / email: [EMAIL PROTECTED] \ \
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]