SessionStore

Interface for a basic session store.

A session store is responsible for storing the id and the associated key/value pairs of a session.

Members

Functions

create
Session create()

Creates a new session.

createSessionInstance
Session createSessionInstance(string id)

Creates a new Session object which sources its contents from this store.

destroy
void destroy(string id)

Terminates the given session.

get
Variant get(string id, string name, Variant defaultVal)

Returns the value for a given session key.

isKeySet
bool isKeySet(string id, string key)

Determines if a certain session key is set.

iterateSession
int iterateSession(string id, int delegate(string key) @(safe) del)

Iterates all keys stored in the given session.

open
Session open(string id)

Opens an existing session.

remove
void remove(string id, string key)

Removes a key from a session

set
void set(string id, string name, Variant value)

Sets a name/value pair for a given session.

Properties

storageType
SessionStorageType storageType [@property getter]

Returns the internal type used for storing session keys.

Meta