Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

Session:Has Tag

This tag checks the session to see if any given keys exist in a user session.

Example

This is a very simple tag designed to be used in a condition statement. You may check to see if a key has been set (most likely by the session:set tag) in the session. It returns either true or false.

{{ if {session:has key="entered_survey"} }}
<p>You already filled out the survey. Thanks for your feedback!</p>
{{ /if }}
HR: Section
Learn More!

Check if data exists in the user session.

HR: Section
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →
Hello there! Are you looking for the Statamic v2 documentation?