Skip to content

Commit

Permalink
Set cookie, secure = 1, samesite = None.
Browse files Browse the repository at this point in the history
  • Loading branch information
wjcheers committed Jul 22, 2020
1 parent 7a1e07b commit 49508bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@
include_once('./lib/ModuleUtility.php'); /* Depends: UserInterface */
include_once('./lib/TemplateUtility.php'); /* Depends: ModuleUtility, Hooks */

ini_set('session.cookie_secure',1);
ini_set('session.cookie_path','/;samesite=None;');

/* Give the session a unique name to avoid conflicts and start the session. */
@session_name(CATS_SESSION_NAME);
Expand Down

0 comments on commit 49508bb

Please sign in to comment.