Skip to content

Commit

Permalink
fixed cookie secret. yea
Browse files Browse the repository at this point in the history
  • Loading branch information
donpdonp committed Aug 3, 2013
1 parent 1fd2487 commit 224b2a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web.rb
Expand Up @@ -20,7 +20,9 @@ class Npv < Sinatra::Base
ActiveRecord::Base.establish_connection(db_creds)
ActiveRecord::Migrator.migrate('db/migrate')
set :slim, :pretty => true
use Rack::Session::Cookie, :expire_after => 15552000 #6 months
use Rack::Session::Cookie,
:expire_after => 15552000, #6 months
:secret => SETTINGS['session_secret']
end

helpers do
Expand Down

0 comments on commit 224b2a3

Please sign in to comment.