I recently upgraded an app to rails 2.3 and on many pages on my local machine the top of the HTML body included something like this:
Set-Cookie: _myapp_session_id=BAh7B...; path=/; HttpOnly
I couldn’t figure out what was happening until I found this forum post which explained that the problem was related to passenger 2.0.6. To fix the problem I just needed to update the version of passenger I was running.
To update passenger (on a mac) was pretty simple. Just run the following 2 commands:
sudo gem install passenger
sudo passenger-install-apache2-module
Depending on how you set up your local apache instance, you may also need to update the config. I needed to update /etc/apache2/httpd.conf to
LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-2.1.2/ext/apache2/mod_passenger.so
PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-2.1.2
Just had this exact thing and the same solution worked. Thanks for blogging it!
T_T had this problem too and yes, the solution you posted fixed it… i encountered this problem while working on RubyCas and for some reason cookies doesn’t expire on passenger but on mongrel and webrick it does. Turned out that passenger was silently rededefining the CAS cookies… spent 1.5 days barking at the wrong tree(s). Thanks for blogging this solution, and please have my babies
OMG! Thanks.
I was beating my head on my desk trying to figure this out.