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/4.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
@@ -3538,7 +3538,17 @@ Defined by
3538
3538
3539
3539
A private, random, cryptographically-secure key that is used for hashing and encrypting data in [craft\services\Security](craft4:craft\services\Security).
3540
3540
3541
-
This value should be the same across all environments. If this key ever changes, any data that was encrypted with it will be inaccessible.
3541
+
::: warning
3542
+
**Do not** share this key publicly. If exposed, it could lead to a compromised system.
3543
+
:::
3544
+
3545
+
In the event that the key is compromised, a new secure key can be generated with the command:
3546
+
3547
+
```sh
3548
+
php craft setup/security-key
3549
+
```
3550
+
3551
+
Note that if the key changes, any data that is encrypted with it (e.g. user session cookies) will be inaccessible.
0 commit comments