Skip to content
Snippets Groups Projects
Commit 5b2dfce9 authored by JediKev's avatar JediKev
Browse files

issue: Httponly Cookies

This addresses issue 4015 where osTicket’s cookies aren’t HttpOnly by
default. The HttpOnly flag helps prevent client scripts accessing the
cookie. This updates the method that sets the cookie params to include
the HttpOnly flag.
parent acac3707
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ class osTicketSession {
list($domain) = explode(':', $_SERVER['HTTP_HOST']);
session_set_cookie_params($ttl, ROOT_PATH, $domain,
osTicket::is_https());
osTicket::is_https(), true);
if (!defined('SESSION_BACKEND'))
define('SESSION_BACKEND', 'db');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment