Skip to content

Commit

Permalink
fix(YesWikiInit): use httponly also for session cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
J9rem committed Oct 5, 2021
1 parent 5f4c8e1 commit df42b08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/YesWikiInit.php
Expand Up @@ -339,6 +339,7 @@ public function initCookies()
if (!isset($_SESSION)) {
$cookiesParam = session_get_cookie_params();
$cookiesParam['path'] = $CookiePath;
$cookiesParam['httponly'] = true;
session_set_cookie_params($cookiesParam);
session_name($sessionName);
session_start();
Expand Down

0 comments on commit df42b08

Please sign in to comment.