Session-flush Tag
The flush tag will wipe the entire user session. This will also sign a user out if they're signed in.
Example
{{ session:flush }}
{{-- Using Statamic Antlers Components --}}<s:session:flush /> {{-- Using PHP --}}@php(session()->flush())
That's all there is to it. How you use it is up to you. You may want to tuck this away behind an if
statement or a unique URL.
Did you know? In Australia the session flushes the other way. π¦πΊ
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page