MemorySessionStore

Session store for storing a session in local memory.

If the server is running as a single instance (no thread or process clustering), this kind of session store provies the fastest and simplest way to store sessions. In any other case, a persistent session store based on a database is necessary.

Members

Functions

create
Session create()
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy(string id)
Undocumented in source. Be warned that the author may not have intended to support it.
get
Variant get(string id, string name, Variant defaultVal)
Undocumented in source. Be warned that the author may not have intended to support it.
isKeySet
bool isKeySet(string id, string key)
Undocumented in source. Be warned that the author may not have intended to support it.
iterateSession
int delegate(int delegate(ref string key, ref Variant value) @(safe)) @(safe) iterateSession(string id)
Undocumented in source. Be warned that the author may not have intended to support it.
iterateSession
int iterateSession(string id, int delegate(string key) @(safe) del)
Undocumented in source. Be warned that the author may not have intended to support it.
open
Session open(string id)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(string id, string key)
Undocumented in source. Be warned that the author may not have intended to support it.
set
void set(string id, string name, Variant value)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

storageType
SessionStorageType storageType [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From SessionStore

storageType
SessionStorageType storageType [@property getter]

Returns the internal type used for storing session keys.

create
Session create()

Creates a new session.

open
Session open(string id)

Opens an existing session.

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

Sets a name/value pair for a 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.

remove
void remove(string id, string key)

Removes a key from a session

destroy
void destroy(string id)

Terminates the given session.

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

Iterates all keys stored in the given session.

createSessionInstance
Session createSessionInstance(string id)

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

Meta