Struct Session
Represents a single HTTP session.
struct Session
;
Indexing the session object with string keys allows to store arbitrary key/value pairs.
Properties
Name | Type | Description |
---|---|---|
id [get]
|
string | Returns the unique session id of this session. |
Methods
Name | Description |
---|---|
get
(key, def_value)
|
Gets a typed field from the session. |
isKeySet
(key)
|
Queries the session for the existence of a particular key. |
opApply
(del)
|
Enables foreach-iteration over all keys of the session. |
opCast
()
|
Checks if the session is active. |
remove
(key)
|
|
set
(key, value)
|
Sets a typed field to the session. |