Session

Represents a single HTTP session.

Indexing the session object with string keys allows to store arbitrary key/value pairs.

Members

Functions

destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
get
const(T) get(string key, T def_value)

Gets a typed field from the session.

isKeySet
bool isKeySet(string key)

Queries the session for the existence of a particular key.

opApply
int opApply(int delegate(string key) @(safe) del)

Enables foreach-iteration over all keys of the session.

opCast
bool opCast()

Checks if the session is active.

remove
void remove(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
set
void set(string key, T value)

Sets a typed field to the session.

Properties

id
string id [@property getter]

Returns the unique session id of this session.

Meta