diff options
author | Andrey Andreev <narf@devilix.net> | 2022-01-05 17:52:24 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2022-01-05 17:52:24 +0100 |
commit | 1a2651040ef701e750b1c13cd69cc70814b079d0 (patch) | |
tree | 50d2317b96af4f26945f8a1f8a59c37629ce4586 /application/config | |
parent | f370f2c042905e521fa3a25283f7e275606a8724 (diff) |
Add SameSite cookie support to Session library
Diffstat (limited to 'application/config')
-rw-r--r-- | application/config/config.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/application/config/config.php b/application/config/config.php index 161b95699..ee599c7aa 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -341,6 +341,10 @@ $config['encryption_key'] = ''; | | The session cookie name, must contain only [0-9a-z_-] characters | +| 'sess_samesite' +| +| Session cookie SameSite attribute: Lax (default), Strict or None +| | 'sess_expiration' | | The number of SECONDS you want the session to last. @@ -381,6 +385,7 @@ $config['encryption_key'] = ''; */ $config['sess_driver'] = 'files'; $config['sess_cookie_name'] = 'ci_session'; +$config['sess_samesite'] = 'Lax'; $config['sess_expiration'] = 7200; $config['sess_save_path'] = NULL; $config['sess_match_ip'] = FALSE; |