SessionData

Undocumented in source.

Constructors

this
this(string id)
Undocumented in source.

Members

Functions

checkTimeout
void checkTimeout(HTTPServerRequest req, HTTPServerResponse res)

Ends the session if it's timed out

dummyLogin
void dummyLogin()

Ugly hack to "login" with a dummy account, bypassing the DB. Needed by the document caching/preloading system.

keepAlive
void keepAlive()
Undocumented in source. Be warned that the author may not have intended to support it.
login
void login(Connection dbConn, string userId)
Undocumented in source. Be warned that the author may not have intended to support it.
logout
void logout(Connection dbConn)
Undocumented in source. Be warned that the author may not have intended to support it.
restoreSession
void restoreSession(Connection dbConn)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

isLoggedIn
bool isLoggedIn [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
loginState
LoginState loginState [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
timeoutDuration
Duration timeoutDuration [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
timeoutDuration
Duration timeoutDuration [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
userId
string userId [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

restore
SessionData restore(Connection dbConn, SessionDB dbSess)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

id
string id;
Undocumented in source.
isDummyLogin
bool isDummyLogin;
Undocumented in source.
lastAccess
DateTime lastAccess;
Undocumented in source.
oneShotMessage
string oneShotMessage;
Undocumented in source.
postLoginUrl
string postLoginUrl;

Empty string implies default

session
Session session;
Undocumented in source.

Meta