Struct 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

Name Description
this Initializes a session var with a constant value.

Fields

Name Type Description
m_initValue T

Properties

Name Type Description
value [get, set] const(T) Accesses the current value of the session variable.

Methods

Name Description
opAssign

Authors

Sönke Ludwig

Copyright

© 2013-2015 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.