Class | Merb::MemorySession |
In: |
lib/merb-core/dispatch/session/memory.rb
|
Parent: | Object |
Sessions stored in memory.
And a setting in +merb.yml+:
:session_store: memory :memory_session_ttl: 3600 (in seconds, one hour)
Sessions will remain in memory until the server is stopped or the time as set in :memory_session_ttl expires.
data | [RW] | |
needs_new_cookie | [RW] | |
session_id | [RW] |
session_id<String: | The ID of the session to retrieve. |
Array: | A pair consisting of a MemorySession and the session‘s ID. If no sessions matched session_id, a new MemorySession will be generated. |
k<~to_s>: | The key of the session parameter to retrieve. |
String: | The value of the session parameter. |
k<~to_s>: | The key of the session parameter to set. |
v<~to_s>: | The value of the session parameter to set. |