method
destroy
v4.2.9 -
Show latest stable
- Class:
ActionDispatch::Request::Session
destroy()public
No documentation available.
# File actionpack/lib/action_dispatch/request/session.rb, line 77
def destroy
clear
options = self.options || {}
new_sid = @by.send(:destroy_session, @env, options[:id], options)
options[:id] = new_sid # Reset session id with a new value or nil
# Load the new sid to be written with the response
@loaded = false
load_for_write!
end