Libraries anvil net Session

class Session
extends anvil.lang.object
The session datatype is used for representing a unique user session.

Methods

string getCitizen()
Returns name of the citizen logged in, or null if none.
Returns citizen name

int getCreationTime()
Returns timestamp when this session was created.
Returns timestamp

string getID()
Returns the unique ID of this session.

int getLastAccessTime()
Returns timestamp when this session was last accessed.
Returns timestamp

void invalidate()
Invalidates this session, removing it from session container

void touch()
Updates time of last access.


Attributes

Attributes stored to session.


References

Attributes stored to session.