← Back to Docs
  • Tags
    • 404
    • asset
    • assets
    • cache
    • collection
    • collection:count
    • collection:next
    • collection:previous
    • dump
    • entries
    • entries:listing
    • env
    • foreach
    • form
    • form:create
    • form:errors
    • form:set
    • form:submission
    • form:submissions
    • form:success
    • get_content
    • get_files
    • get_value
    • glide
    • glide:batch
    • glide:generate
    • increment
    • iterate
    • link
    • locales
    • markdown
    • markdown:indent
    • nav
    • nav:breadcrumbs
    • nav:count
    • nav:exists
    • oauth
    • obfuscate
    • pages
    • pages:listing
    • pages:next
    • pages:previous
    • parent
    • partial
    • path
    • redirect
    • relate
    • routes
    • search
    • search:form
    • section
    • session
    • session:dump
    • session:flash
    • session:flush
    • session:forget
    • session:set
    • switch
    • taxonomy
    • taxonomy:listing
    • theme
    • theme:asset
    • theme:css
    • theme:img
    • theme:js
    • theme:output
    • theme:partial
    • trans
    • trans_choice
    • user
    • user:can
    • user:forgot_password_form
    • user:in
    • user:is
    • user:login_form
    • user:logout
    • user:logout_url
    • user:not_in
    • user:profile
    • user:register_form
    • user:reset_password_form
    • users
    • widont
    • yield
  • Docs
  • Modern Docs

      Modern Docs
      ← Back to Docs
      • Tags
        • 404
        • asset
        • assets
        • cache
        • collection
        • collection:count
        • collection:next
        • collection:previous
        • dump
        • entries
        • entries:listing
        • env
        • foreach
        • form
        • form:create
        • form:errors
        • form:set
        • form:submission
        • form:submissions
        • form:success
        • get_content
        • get_files
        • get_value
        • glide
        • glide:batch
        • glide:generate
        • increment
        • iterate
        • link
        • locales
        • markdown
        • markdown:indent
        • nav
        • nav:breadcrumbs
        • nav:count
        • nav:exists
        • oauth
        • obfuscate
        • pages
        • pages:listing
        • pages:next
        • pages:previous
        • parent
        • partial
        • path
        • redirect
        • relate
        • routes
        • search
        • search:form
        • section
        • session
        • session:dump
        • session:flash
        • session:flush
        • session:forget
        • session:set
        • switch
        • taxonomy
        • taxonomy:listing
        • theme
        • theme:asset
        • theme:css
        • theme:img
        • theme:js
        • theme:output
        • theme:partial
        • trans
        • trans_choice
        • user
        • user:can
        • user:forgot_password_form
        • user:in
        • user:is
        • user:login_form
        • user:logout
        • user:logout_url
        • user:not_in
        • user:profile
        • user:register_form
        • user:reset_password_form
        • users
        • widont
        • yield

      Session:Flush

      The session:flush tag is used to clear the entire 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.

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

      {{ session:flush }}
      
      Last modified on November 6, 2018
      Improve Content
      Table of Contents
      1. Usage
      © 2012–2026 Statamic