Rack::Session::Pool with Sinatra?

Simply replace the line enable :sessions with use Rack::Session::Pool All enable :session does is adding Rack::Session::Cookie to the stack (which you want to avoid). The session helper will still work.

Simply replace the line enable :sessions with use Rack::Session::Pool. All enable :session does is adding Rack::Session::Cookie to the stack (which you want to avoid). The session helper will still work.

I have a Sinatra webapp I've built using enable :sessions where I access my session data with session:mything. I now want to store data on the server side (ie. With database based sessions) and I can't figure out how to use Rack::Session::Pool, which appears to be the thing I need to use.

How do I o about converting my webapp for use with Pool? What comes next? — thanks in advance!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions