Change cookie expiry to one hour to track visits, not visitors
This commit is contained in:
parent
0f3ff0ac66
commit
63bf2ce327
@ -48,7 +48,7 @@ try {
|
|||||||
$uuid = gen_uuid();
|
$uuid = gen_uuid();
|
||||||
}
|
}
|
||||||
|
|
||||||
setcookie("sw-uuid", $uuid, time() + 60 * 60 * 24 * 30, "/", $_SERVER['HTTP_HOST'], false, true);
|
setcookie("sw-uuid", $uuid, time() + 60 * 60 * 1, "/", $_SERVER['HTTP_HOST'], false, true);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get the user's IP address
|
// Get the user's IP address
|
||||||
|
Loading…
x
Reference in New Issue
Block a user