Class: Merb::ActiveRecordSession

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

### Methods

[] []= create_table! data data_column_size_limit delete drop_table! each each_with_index empty? generate loaded? marshal persist refresh_expiration regenerate unmarshal

### Attributes

data | [W] |
needs_new_cookie | [RW] |

### Public Class methods

create_table!()
data_column_size_limit()
drop_table!()
generate()

Generates a new session ID and creates a row for the new session in the database.

marshal(data)
persist(session_id)

Gets the existing session based on the `session_id` available in cookies. If none is found, generates a new session.

unmarshal(data)

### Public Instance methods

[](key)
[]=(key, val)
data()

Lazy-unmarshal session state.

delete(key = nil)

Lazy-delete of session data

each(&b)
each_with_index(&b)
empty?()
loaded?()

Has the session been loaded yet?

refresh_expiration()

Recreates the cookie with the default expiration time Useful during log in for pushing back the expiration date

regenerate()

Regenerate the Session ID

[Validate]