request.getSession() is getting session or creating session?
Just I gone through,
Under what conditions is a JSESSIONID created?
Till now I am in a impression that,
request.getSession()
Gives me the current session(giving,not creating) based upon the boolean
passed to that method.Looks cool till here.
Now I read that
Session is created when your code calls request.getSession() or
request.getSession(true) for the first time.
So ,If I'm not calling request.getSession() in my any of servlets, And
those servlets are made to serve some static html pages (around 50),
1)There is no need of a session between the container and the client ?
2)If no how container is detecting(serving a html page) client ?any hidden
info in headers other than the session id?
No comments:
Post a Comment