J
Joshua
I have a servlet. Nothing in the doPost() apart from:
if (req.isRequestedSessionIdValid())
{
System.out.println("session ID is valid");
}
else
{
System.out.println("session ID is not valid");
}
So first time in from a JSP (in a fresh instance of a browser) calling
this servlet it is printing "session ID is valid" which I can't
understand. My understanding is that only if req.getSession() or
req.getSession(true) a new session is created.
Do I understand incorrectly?
if (req.isRequestedSessionIdValid())
{
System.out.println("session ID is valid");
}
else
{
System.out.println("session ID is not valid");
}
So first time in from a JSP (in a fresh instance of a browser) calling
this servlet it is printing "session ID is valid" which I can't
understand. My understanding is that only if req.getSession() or
req.getSession(true) a new session is created.
Do I understand incorrectly?