Beispiel #1
0
 private function newCookie()
 {
     $randomStringGenerator = new generateRandomString(30, true, 50, 300);
     $randomString = $randomStringGenerator->run();
     $this->key = Hasher::generateHmacHash($randomString) . " # " . $randomString;
     $aSingleDay = 24 * 60 * 60;
     $cookieExpireTime = time() + $aSingleDay;
     setcookie("educaskS", $this->key, $cookieExpireTime, null, null, null, true);
 }