Skip to content

Commit

Permalink
Use full url for sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
mark0263 committed Oct 29, 2015
1 parent 6099e2b commit 409536f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion private/system/lib-sessions.php
Expand Up @@ -39,7 +39,7 @@
// ensure cookie domain is properly initialized

if (empty ($_CONF['cookiedomain'])) {
preg_match ("/\/\/([^\/:]*)/", $_CONF['site_url'], $server);
preg_match ("/\/\/([^\/:]*)/", $_CONF['http_host'], $server);
if (substr ($server[1], 0, 4) == 'www.') {
$_CONF['cookiedomain'] = substr ($server[1], 3);
} else {
Expand Down

0 comments on commit 409536f

Please sign in to comment.