Class Merb::MemorySessionContainer
In: lib/merb-core/dispatch/session/memory.rb
Parent: Object

Used for handling multiple sessions stored in memory.

Methods

[]   []=   create   delete   reap_old_sessions   sessions   setup   start_timer  

Public Class methods

Parameters

key<String>:ID of the session to retrieve.

Returns

MemorySession:The session corresponding to the ID.

Parameters

key<String>:ID of the session to set.
val<MemorySession>:The session to set.

Creates a new session based on the options.

Parameters

opts<Hash>:The session options (see below).

Options (opts)

:session_id<String>:ID of the session to create in the container.
:data<MemorySession>:The session to create in the container.

Parameters

key<String>:ID of the session to delete.

Deletes any sessions that have reached their maximum validity.

Returns

Array:The sessions stored in this container.

Parameters

ttl<Fixnum>:Session validity time in seconds. Defaults to 1 hour.

Returns

MemorySessionContainer:The new session container.

Starts the timer that will eventually reap outdated sessions.

[Validate]