instance method close

Ruby on Rails 2.2.3

Last seen in v2.2.3

Signature

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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close