| Class | Sinatra::Session::Cookie |
| In: |
lib/sinatra/sessions.rb
|
| Parent: | Object |
# File lib/sinatra/sessions.rb, line 8
8: def initialize(app, options = {})
9: @app = if (@@use ||= :on) == :off
10: app
11: else
12: Rack::Session::Cookie.new(app)
13: end
14: end
# File lib/sinatra/sessions.rb, line 4 4: def self.use=(v) 5: @@use = v unless Sinatra::Server.running # keep is thread-safe! 6: end