Commit 1c60fed9 authored by Leigh Stoller's avatar Leigh Stoller

Fix for cookies, I think.

parent e8d4bf0d
......@@ -491,12 +491,8 @@ if (! $creator) {
# set the cookie appropriately.
#
if (!$this_user) {
if (stristr($_SERVER["SERVER_NAME"], $TBAUTHDOMAIN)) {
$cookiedomain = $TBAUTHDOMAIN;
}
else {
$cookiedomain = $_SERVER["SERVER_NAME"];
}
$cookiedomain = $TBAUTHDOMAIN;
setcookie("quickvm_user",
$creator->uuid(), time() + (24 * 3600 * 30),
"/", $cookiedomain, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment