Skip to content

Instantly share code, notes, and snippets.

@saveologypaul
Created April 25, 2012 21:02
Show Gist options
  • Save saveologypaul/2493348 to your computer and use it in GitHub Desktop.
Save saveologypaul/2493348 to your computer and use it in GitHub Desktop.
cookiestore to new session
def move_session_data
if cookies['_xxxxx_session']
old_session_data = Marshal.load(ActiveSupport::Base64.decode64(cookies['_xxxx_session']))
old_session_datah.each {|key, value|
session[key] = value
}
#cookies.delete :_xxxxx_session
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment