Skip to content
Snippets Groups Projects
Commit 66043985 authored by Steven Wittens's avatar Steven Wittens
Browse files

#108663: Fix log-in problems due to cookie domain mismatch (www vs no www)."

parent 68ac4772
No related branches found
No related tags found
No related merge requests found
......@@ -136,6 +136,15 @@
ini_set('session.use_trans_sid', 0);
ini_set('url_rewriter.tags', '');
/**
* We try to set the correct cookie domain. If you are experiencing problems
* try commenting out the code below or specifying the cookie domain by hand.
*/
if (isset($_SERVER['HTTP_HOST'])) {
$domain = '.'. preg_replace('`^www.`', '', $_SERVER['HTTP_HOST']);
ini_set('session.cookie_domain', $domain);
}
/**
* Variable overrides:
*
......
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