diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-17 17:18:41 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-17 17:18:41 +0100 |
commit | d0a23c4920794c9f8dd4189d7432a6b49da898d8 (patch) | |
tree | a4ae0397d8b3e044caa1948c3cd8eeacff158b23 /example/sample.ru | |
parent | d306318eab974e596d9ae07d7ab4f9170ce025f7 (diff) | |
download | zorglub-d0a23c4920794c9f8dd4189d7432a6b49da898d8.zip zorglub-d0a23c4920794c9f8dd4189d7432a6b49da898d8.tar.gz |
App: remove session_ prefix from session_options keys
Diffstat (limited to 'example/sample.ru')
-rw-r--r-- | example/sample.ru | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/sample.ru b/example/sample.ru index a31aa8a..9dc4d13 100644 --- a/example/sample.ru +++ b/example/sample.ru @@ -65,7 +65,7 @@ APP = Zorglub::App.new do opt! :debug, true opt! :engine, :haml opt!:root, File.dirname( File.absolute_path(__FILE__) ) - opt(:session_options)[:session_on] = true + opt(:session_options)[:enabled] = true map '/url1', Node1 end # @@ -149,7 +149,7 @@ map '/' do use Rack::Lint use Rack::ShowExceptions if USE_RACK_SESSION - use Rack::Session::Cookie, :key=>Zorglub::Config.session_key, :secret=>Zorglub::Config.session_secret, + use Rack::Session::Cookie, :key=>APP.opt(:session_options)[:key], :secret=>APP.opt(:session_options)[:secret], :path=>'/', :http_only=>true, :expire_after=>30 end run APP |