Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2012-1-23 22:35

Class SessionStore

Class Summary
Constructor Attributes Constructor Name and Description
 
SessionStore(config)
A basic in-memory session store

Method Summary

Method Attributes Method Name and Description
 
cleanup(timeout)
Go through the sessions and clean up any that have timed out.
 
destroy(session)
Destroys the given session.
 
load(id)
Returns a promise for the session having the given ID.
 
save(session)
Saves the given session and returns a completion promise.

Class Detail

SessionStore(config)
A basic in-memory session store
Parameters:
config

Method Detail

  • cleanup(timeout)
    Go through the sessions and clean up any that have timed out.
    Parameters:
    timeout
    Returns:
    promise completion promise
  • destroy(session)
    Destroys the given session.
    Parameters:
    session
    Returns:
    promise completion promise
  • load(id)
    Returns a promise for the session having the given ID.
    Parameters:
    id
    the session id
    Returns:
    promise
  • save(session)
    Saves the given session and returns a completion promise.
    Parameters:
    session
    Returns:
    promise