Originally posted by Madhav Lakkapragada:
My curiosity is from a theoritical perspective...Does the API/Spec stop me from doing what I said. I don't think the API or Spec stops us from doing this.
What do you think?
The real question I want to ask is......
Can I have a 10 session in one part of my store and a 60 min session in another part of my store?
Thanks.
- satya
Satya,
with what code do you want to implement your functionality
We get the session with
Originally posted by api-doc:
public HttpSession getSession(boolean create)Returns the current HttpSession associated with this request or, if if there is no current session and create is true, returns a new session.
So if there is still a session-cookie for that app in the request of the user, you will get that session and if not it will create a new session.
To implement your idea in my understanding one would have to use some method like:
public HttpSession getSession(boolean create,
String urlPattern)
But this does not exist.
Axel