Class | Rack::Session::Pool
In: | lib/rack/session/pool.rb
Parent: | Abstract::ID

Rack::Session::Pool provides simple cookie based session management. Session data is stored in a hash held by @pool. In the context of a multithreaded environment, sessions being committed to the pool is done in a merging manner.

The :drop option is available in rack.session.options if you wish to explicitly remove the session from the session cache.

Example:

      myapp = MyRackApp.new
      sessioned = Rack::Session::Pool.new(myapp,
        :domain => 'foo.com',
        :expire_after => 2592000
      )
      Rack::Handler::WEBrick.run sessioned

### Methods

destroy_session generate_sid get_session new set_session with_lock

### Constants

DEFAULT_OPTIONS | = | Abstract::ID::DEFAULT_OPTIONS.merge :drop => false

### Attributes

mutex | [R] |
pool | [R] |

### Public Class methods

new(app, options={})

### Public Instance methods

destroy_session(env, session_id, options)
generate_sid()
get_session(env, sid)
set_session(env, session_id, new_session, options)
with_lock(env) {|| ...}

[Validate]