ruby - Sinatra enable :sessions not working on passenger/apache -
am having trouble getting enable :sessions persist simple sinatra app hosted on passenger/apache. i'm storing state of session[:authorized] in cookie. works locally when hosted on rack::handler::mongrel can't seem same behaviour on passenger.
i've tried 2 methods enabling sessions, both of don't work on passenger/apache installation enable :sessions
and
use rack::session::pool, :domain => 'example.com', :expire_after => 60 * 60 * 24 * 365
any ideas on how fix?
we facing similar although not using apache / passenger (in development mode). resolved -
comment out rack::session commands within sinatra app. in config.ru file. , haven enable :sessions in sinatra app.
that should work.
Comments
Post a Comment