Commit 1c60fed9 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Fix for cookies, I think.

parent e8d4bf0d
...@@ -491,12 +491,8 @@ if (! $creator) { ...@@ -491,12 +491,8 @@ if (! $creator) {
# set the cookie appropriately. # set the cookie appropriately.
# #
if (!$this_user) { if (!$this_user) {
if (stristr($_SERVER["SERVER_NAME"], $TBAUTHDOMAIN)) { $cookiedomain = $TBAUTHDOMAIN;
$cookiedomain = $TBAUTHDOMAIN;
}
else {
$cookiedomain = $_SERVER["SERVER_NAME"];
}
setcookie("quickvm_user", setcookie("quickvm_user",
$creator->uuid(), time() + (24 * 3600 * 30), $creator->uuid(), time() + (24 * 3600 * 30),
"/", $cookiedomain, 0); "/", $cookiedomain, 0);
......
Supports Markdown
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