Active Record Sessions only work on localhost

Hi I was wondering if anyone else was having this problem or might
know why its happening.

I basically need to use AR sessions instead of the default pstore for
sessions so I did the rake db:sessions:create to get the migrate file
and then the rake db:migrate to create the session table.

Also uncommented the below line in environment.rb

config.action_controller.session_store = :active_record_store

started the server and everything works as advertised on localhost
(winxp, rails 1.2.3, ruby 1.8.6)

But when i did the same for my production machine (ubuntu, rails
1.2.3, ruby 1.8.6) the sessions dont seem to work. First thing i
noticed was that for each session, 4-5 entries were created in the
sessions table while on my local machine only 1 entry was created.
Can’t find any error messages in the logs either.

Any help ideas or anything is much appreciated, I couldn’t find any
help anywhere else.

Thanks in advance,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs