session-hack-rails2-rails3

Hackery to get Rails 2 to share a common session in the browser with Rails 3 Rails 2 and 3 both put FlashHash in the session but have different APIs and cannot de-serialize sessions from the other version.

Installation

Add this line to your application’s Gemfile:

And then execute:

Or install it yourself as:

Usage

In your rails3 app, add the following in the config/initializers/session_store.rb

In your rails2 app, add the following in the config/initializers/session_store.rb

That’s all! You should be able to share session object between your rails2 and rails3 apps.

Contributing to session-hack-rails2-rails3

Copyright © 2012 MC Pair 1. See LICENSE.txt for further details.