Hi,
Obtaining a session in java (whether is exists or does not exist) is rather
simple.
I find a handle to the request object and get the session that way.
request.getSession(false);
This is the HttpSession that houses all state variables during your browser
session.
Every session that gets created has a unique ID.
I have seen some web systems allocate a session per frame when using
framesets... this caused a multi-threaded rendering effect.
When calling to get a session you pass a boolean ...
Session
org.apache.tapestry5.services.Request.getSession(boolean
create)
Gets the Session.
If create is false and the session has not been created previously, returns
null.
Also, if the session is invalidated and create is false, returns null.
Parameters:
create true to force the creation of the session
Returns:
the session (or null if create is false the session has not been previously
created)