Class: Merb::ActiveRecordSessionStore

Class | Merb::ActiveRecordSessionStore
In: | lib/merb/session/active_record_session.rb
Parent: | ::ActiveRecord::Base

Sessions stored in ActiveRecord model.

To use ActiveRecord based sessions add the following to config/init.rb:

Merb::Config[:session_store] = ‘activerecord‘

### Methods

delete_session retrieve_session store_session

### Public Class methods

delete_session(session_id)

#### Parameters

session_id<String>: | ID of the session to delete.

retrieve_session(session_id)

#### Parameters

session_id<String>: | ID of the session to retrieve.

#### Returns

ContainerSession: | The session corresponding to the ID.

store_session(session_id, data)

#### Parameters

session_id<String>: | ID of the session to set.
data<ContainerSession>: | The session to set.

[Validate]