Class 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.
Properties
Name | Type | Description |
---|---|---|
storageType [get]
|
SessionStorageType | Returns the internal type used for storing session keys. |
Methods
Name | Description |
---|---|
create
()
|
Creates a new session. |
destroy
(id)
|
Terminates the given session. |
get
(id, name, defaultVal)
|
|
isKeySet
(id, key)
|
Determines if a certain session key is set. |
iterateSession
(id)
|
|
iterateSession
(id, del)
|
|
open
(id)
|
Opens an existing session. |
remove
(id, key)
|
Removes a key from a session |
set
(id, name, value)
|
|
get
(id, name, defaultVal)
|
Returns the value for a given session key. |
iterateSession
(id, del)
|
Iterates all keys stored in the given session. |
set
(id, name, value)
|
Sets a name/value pair for a given session. |
createSessionInstance
(id)
|
Creates a new Session object which sources its contents from this store. |