new SessionStore()
A session store is used to store sessions for an Apex web app
- Source:
Methods
-
clear(resultHandler)
-
Remove all sessions from the store
Parameters:
Name Type Description resultHandlerfunction will be called with a result true/false, or a failure - Source:
-
close()
-
Close the store
- Source:
-
createSession(timeout) → {Session}
-
Create a new session
Parameters:
Name Type Description timeoutnumber the session timeout, in ms - Source:
Returns:
the session- Type
- Session
-
delete(id, resultHandler)
-
Delete the session with the specified ID
Parameters:
Name Type Description idstring the unique ID of the session resultHandlerfunction will be called with a result true/false, or a failure - Source:
-
get(id, resultHandler)
-
Get the session with the specified ID
Parameters:
Name Type Description idstring the unique ID of the session resultHandlerfunction will be called with a result holding the session, or a failure - Source:
-
put(session, resultHandler)
-
Add a session with the specified ID
Parameters:
Name Type Description sessionSession the session resultHandlerfunction will be called with a result true/false, or a failure - Source:
-
size(resultHandler)
-
Get the number of sessions in the store
Parameters:
Name Type Description resultHandlerfunction will be called with the number, or a failure - Source: