instance method
reset_session
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
reset_session()
Resets the session by clearing out all the objects stored within and initializing a new session object.
Source
# File actionpack/lib/action_controller/base.rb, line 1164
def reset_session #:doc:
request.reset_session
@_session = request.session
#http://rails.lighthouseapp.com/projects/8994/tickets/1558-memory-problem-on-reset_session-in-around_filter#ticket-1558-1
#MRI appears to have a GC related memory leak to do with the finalizer that is defined on CGI::Session
ObjectSpace.undefine_finalizer(@_session)
response.session = @_session
end
Defined in actionpack/lib/action_controller/base.rb line 1164
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Base