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

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -