Session:Forget

The session:forget tag is used to remove data from the user session.


Usage

Data set in the session will be available in all requests until such time that the session is cleared, either over time (sessions eventually expire) or intentionally.

Remove variables from the session by passing a collection of keys into the tag.

{{ session:forget keys="likes|referral" }}

Or you can wipe the entire session with the flush tag. Keep in mind this will also sign a user out if they’re signed in.

{{ session:flush }}
Last modified on November 6, 2018