How to empty/destroy a session in rails?

To clear the whole thing use the reset_session method in a controller.

reset_session

Here’s the documentation on this method: http://api.rubyonrails.org/classes/ActionController/Base.html#M000668

Resets the session by clearing out all
the objects stored within and
initializing a new session object.

Good luck!

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)