Skip to content

Instantly share code, notes, and snippets.

@benfurfie
Last active October 3, 2019 14:16
Show Gist options
  • Save benfurfie/ee1537fb7869ff6ef97da1d42c4e5552 to your computer and use it in GitHub Desktop.
Save benfurfie/ee1537fb7869ff6ef97da1d42c4e5552 to your computer and use it in GitHub Desktop.
Statamic v2 Cheatsheet

Statamic v2 Cheatsheet

Security

Session Cookies

In WordPress (and other PHP CMSs), to secure session cookies, you would apply the following to your wp-config.php file.

@ini_set('session.cookie_httponly', true);
@ini_set('session.cookie_secure', true);
@ini_set('session.use_only_cookies', true);

However, this isn't how you do it in Statamic. Instead, it's as simple as applying the following to your .env file.

SESSION_SECURE=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment