Skip to content
Snippets Groups Projects
Commit 6611d1d6 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #719 from greezybacon/issue/cookie-variant-port


Fixes cookie domain specification

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents c8197915 eecd0b1a
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,9 @@ class osTicketSession {
if (isset($_SERVER['HTTP_HOST'])
&& strpos($_SERVER['HTTP_HOST'], '.') !== false
&& !Validator::is_ip($_SERVER['HTTP_HOST']))
$domain = $_SERVER['HTTP_HOST'];
// Remote port specification, as it will make an invalid domain
list($domain) = explode(':', $_SERVER['HTTP_HOST']);
session_set_cookie_params(86400, ROOT_PATH, $domain,
osTicket::is_https());
......
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