SessionVar

Maps a web interface member variable to a session field.

Setting a SessionVar variable will implicitly start a session, if none has been started yet. The content of the variable will be stored in the session store and is automatically serialized and deserialized.

Note that variables of type SessionVar must only be used from within handler functions of a class that was registered using registerWebInterface. Also note that two different session variables with the same name parameter will access the same underlying data.

Constructors

this
this(T init_val)

Initializes a session var with a constant value.

Alias This

value

Members

Functions

opAssign
void opAssign(T new_value)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

value
T value [@property setter]

Accesses the current value of the session variable.

value
const(T) value [@property getter]

Accesses the current value of the session variable.

Meta