|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
accessed(Context ctx,
Request req,
java.lang.String id)
Will mark the session lastAccess time. |
javax.servlet.http.HttpSession |
createSession(Context ctx)
Construct and return a new session object, based on the default settings specified by this Manager's properties. |
javax.servlet.http.HttpSession |
findSession(Context ctx,
java.lang.String id)
Return the active Session, associated with this Manager, with the specified session id (if any); otherwise return null . |
void |
removeSessions(Context ctx)
Used by context when stoped, need to remove all sessions used by that context |
void |
setSessionTimeOut(int minutes)
Used by context to configure the session manager's inactivity timeout. |
Method Detail |
public javax.servlet.http.HttpSession createSession(Context ctx)
null
.ctx
- The session will be created for the specified contextpublic void accessed(Context ctx, Request req, java.lang.String id)
ctx
- the context where the request belongreq
- the request having the idid
- public javax.servlet.http.HttpSession findSession(Context ctx, java.lang.String id)
null
.id
- The session id for the session to be returnedctx
- The session needs to belong to the contextpublic void removeSessions(Context ctx)
public void setSessionTimeOut(int minutes)
minutes
- The session inactivity timeout in minutes.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |