Module | Camping::Session |
In: |
lib/camping/session.rb
|
To get sessions working for your application:
require 'camping/session' # 1 module Nuts include Camping::Session # 2 secret "Oh yeah!" # 3 end
Camping only ships with session-cookies. However, the @state variable is simply a shortcut for @env. Therefore you can also use any middleware which sets this variable:
module Nuts use Rack::Session::Memcache end