bug fix
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ if (!$fs->issetSessionData("login") && ($fs->getSessionData("login") != "true-as
|
||||
}
|
||||
|
||||
if ($fs->issetSessionData("gumroadData")) {
|
||||
$_POST["data"] = $fs->getSessionData("gumroadData");
|
||||
$_POST["urltransmit"] = $fs->getSessionData("gumroadData");
|
||||
$fs->unsetSessionData("gumroadData");
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,14 @@ class furatalogSessions {
|
||||
}
|
||||
|
||||
private function saveCookie() {
|
||||
setcookie("_cookieKey", $this->cookieKey, time() + $this->cookie_duration, "/");
|
||||
setcookie("_cookieKey", $this->cookieKey, [
|
||||
'expires' => time() + $this->cookie_duration,
|
||||
'path' => '/',
|
||||
'domain' => 'furatalog.xyz',
|
||||
'secure' => true,
|
||||
'httponly' => true,
|
||||
'samesite' => 'Lax'
|
||||
]);
|
||||
}
|
||||
|
||||
private function connectDb() {
|
||||
@@ -87,7 +94,14 @@ class furatalogSessions {
|
||||
}
|
||||
|
||||
private function deleteCookie() {
|
||||
setcookie("_cookieKey", "", time()-3600, "/");
|
||||
setcookie("_cookieKey", "", [
|
||||
'expires' => time()-3600,
|
||||
'path' => '/',
|
||||
'domain' => 'furatalog.xyz',
|
||||
'secure' => true,
|
||||
'httponly' => true,
|
||||
'samesite' => 'Lax'
|
||||
]);
|
||||
}
|
||||
|
||||
private function deleteData($cookieKey) {
|
||||
|
||||
Reference in New Issue
Block a user