You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/.artifacts/cms/5.x/config-general.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3622,7 +3622,17 @@ Defined by
3622
3622
3623
3623
A private, random, cryptographically-secure key that is used for hashing and encrypting data in [craft\services\Security](craft5:craft\services\Security).
3624
3624
3625
-
This value should be the same across all environments. If this key ever changes, any data that was encrypted with it will be inaccessible.
3625
+
::: warning
3626
+
**Do not** share this key publicly. If exposed, it could lead to a compromised system.
3627
+
:::
3628
+
3629
+
In the event that the key is compromised, a new secure key can be generated with the command:
3630
+
3631
+
```sh
3632
+
php craft setup/security-key
3633
+
```
3634
+
3635
+
Note that if the key changes, any data that is encrypted with it (e.g. user session cookies) will be inaccessible.
0 commit comments