When my servlet creates a session, even if it is the first time running the servlet, the session.isNew() returns false. I checked to make sure the session ID's are different each time I run it and they are, yet isNew() still returns false.
I'm trying to do the following in my servlet:
HttpSession session = request.getSession(true);
if (session.isNew())
{
...do something...
}
It never gets into that if statement because it always returns false :S
Any help would be appreciated.