Solutions Log

So I only have to figure things out once.

Changing the Name of an App's Cookie in Rails

While running Tracks and another app on my localhost, I realized that every time I did something on one, it would log me out of the other. Overwriting each other’s cookies!

Add this line to your config/environment.rb:

ActionController::Base.session_options[:session_key] = 'yourappnamehere_session_id'

Then restart the app. All better now.

Source

Comments