From d0a23c4920794c9f8dd4189d7432a6b49da898d8 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Tue, 17 Jan 2012 17:18:41 +0100 Subject: App: remove session_ prefix from session_options keys --- example/sample.ru | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example') 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 -- cgit v1.2.3