I want to delete a session during an after_filter
execution if a condition is valid.
The controller's method reset_session
is of no use since after "deleting" the current session, it creates a new one.
Any idea?
I want to delete a session during an after_filter
execution if a condition is valid.
The controller's method reset_session
is of no use since after "deleting" the current session, it creates a new one.
Any idea?
Inside reset_session
method they are using session.destroy
to remove the session
You could try with
session.destroy
or
session.clear
Please see this link reset_session