This method is deprecated or moved on the latest stable version.
The last existing version (v2.2.1) is shown here.
unmarshal(cookie)
private
Unmarshal cookie data to a hash and verify its integrity.
# File actionpack/lib/action_controller/session/cookie_store.rb, line 138
def unmarshal(cookie)
if cookie
data, digest = cookie.split('--')
# Do two checks to transparently support old double-escaped data.
unless digest == generate_digest(data) || digest == generate_digest(data = CGI.unescape(data))
delete
raise TamperedWithCookie
end
Marshal.load(ActiveSupport::Base64.decode64(data))
end
end