instance method
close
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
close()
Write the session data cookie if it was loaded and has changed.
Source
# File actionpack/lib/action_controller/session/cookie_store.rb, line 109
def close
if defined?(@data) && !@data.blank?
updated = marshal(@data)
raise CookieOverflow if updated.size > MAX
write_cookie('value' => updated) unless updated == @original
end
end
Defined in actionpack/lib/action_controller/session/cookie_store.rb line 109
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in CGI::Session::CookieStore