Method Summary |
|
public String | getCookie() Returns the unique identifier for a session object (session cookie). |
public INode | getData() Get the cache/data node for this session. |
public Date | getLastActive() Returns the time this session was last touched. |
public Date | getLastModified() Gets the date at which the session was created or a login or
logout was performed the last time. |
public String | getMessage() Return the message that is to be displayed upon the next
request within this session. |
public Date | getOnSince() Returns a date object representing the time a user's session was started. |
public UploadStatus | getUploadStatus(String uploadId) Get an upload status for the current user session. |
public INode | getUser() Gets the user object for this session. |
public String | get_id() Returns the unique identifier for a session object (session cookie). |
public Date | lastActive() Returns the time this session was last touched. |
public boolean | login(String username, String password) Attempts to log in a user with the given username/password credentials. |
public void | login(INode userNode) Directly associates the session with a user object without requiring
a username/password pair. |
public void | logout() Disassociate this session from any user object it may have been associated with. |
public Date | onSince() Returns the time this session was created. |
public void | setLastModified(Date date) Sets the date at which the session was created or a login or
logout was performed the last time. |
public void | setMessage(String msg) Set a message to be displayed to this session's user. |
public String | toString() |
public void | touch() Touching the session marks it as active, avoiding session timeout.
Usually, sessions are touched when the user associated with it sends
a request. |