Skip to content

Commit

Permalink
Merge pull request lokka#192 from lokka/yagi_session_secret
Browse files Browse the repository at this point in the history
added session secret to suppress warning.
  • Loading branch information
komagata committed Apr 22, 2013
2 parents 308b9c2 + 0ed4ade commit dd3149c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/lokka.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,4 @@ def load_plugin(app)
require 'lokka/helpers/helpers'
require 'lokka/helpers/render_helper'
require 'lokka/app'
require 'securerandom'
4 changes: 2 additions & 2 deletions lib/lokka/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class App < Sinatra::Base
helpers Lokka::Helpers
helpers Lokka::RenderHelper
use Rack::Session::Cookie,
:expire_after => 60 * 60 * 24 * 12
set :session_secret, 'development' if development?
:expire_after => 60 * 60 * 24 * 12,
:secret => SecureRandom.hex(30)
register Sinatra::Flash
Lokka.load_plugin(self)
Lokka::Database.new.connect
Expand Down

0 comments on commit dd3149c

Please sign in to comment.