This blurb should get you going: http://docs.heroku.com/memcache#using-from-sinatra
Jimmy On Wed, Jan 19, 2011 at 5:57 PM, GarethLAtWork <[email protected]>wrote: > > I guess the Rack::Session::Pool memory isn't shared across dynos. > > Now I'm looking at using Rack::Session::Memcache instead, but it's > very hard to find any code or steps that show how to use Sinatra > +Memcache sessions on Heroku. > > Has anyone done this? > > Thanks. > > > On Jan 18, 9:03 pm, GarethLAtWork <[email protected]> wrote: > > I have a small Sinatra app that uses Rack::Session::Pool. > > > > I'm doing - > > > > get '/' do > > session.clear > > session[:session_id] = UUIDTools::UUID.timestamp_create.to_s > > redirect '/main' > > end > > > > - by the time I get to - > > > > get '/main' do > > session[:session_id] > > ... > > ... > > end > > > > - my session[:session_id] is nil > > > > It seems to have started after switching from 1 dyno to 2 dynos. > > > > Am I doing something wrong? > > > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<heroku%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- +1-919-627-7546 -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
