instance method
authenticity_token_from_cookie_session
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
authenticity_token_from_cookie_session()
No secret was given, so assume this is a cookie session store.
Source
# File actionpack/lib/action_controller/request_forgery_protection.rb, line 131
def authenticity_token_from_cookie_session
session[:csrf_id] ||= CGI::Session.generate_unique_id
session.dbman.generate_digest(session[:csrf_id])
end
Defined in actionpack/lib/action_controller/request_forgery_protection.rb line 131
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection