4

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?

Lazarus Lazaridis
  • 5,803
  • 2
  • 21
  • 35

1 Answers1

0

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

Jenorish
  • 1,694
  • 14
  • 19