ActionController::Base.session_options['session_key'] = 'fb_sig_session_key'
Next, override ActiveRecordStore#initialize to by adding the following to the bottom of environment.rb
class CGI
class Session
class ActiveRecordStore
def initialize(session, option = nil)
session_id = session.session_id
unless @session = ActiveRecord::Base.silence { @@session_class.find_by_session_id(session_id) }
@session = @@session_class.new(:session_id => session_id, :data => {})
end
end
end
end
end
Then restart your server. Your session should now persist between requests and have the same id as fb_sig_session_key.