Is there any way to save a variable in the Craft session inside a controller?
I'm running a cron job and I need to store a variable as a session for every run to see if a condition matches.
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.Sign up to join this community
Craft's HttpSessionService is a thin wrapper for PHP's global $_SESSION variable.
You can use:
to save and retrieve values from it.