updated cookie name
This commit is contained in:
parent
3cc496420f
commit
7f05d7c0aa
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
* smzint/Auth (c) schmamazon.com 2025
|
||||
*/
|
||||
|
||||
$cookie_name = "SMZ";
|
||||
$cookie_name = "SMZ-Auth";
|
||||
|
||||
if(!isset($_COOKIE[$cookie_name])) {
|
||||
echo "Cookie named '" . $cookie_name . "' is not set!";
|
||||
|
|
|
@ -56,7 +56,7 @@ function createSession($uid){
|
|||
|
||||
if ($conn->query($sql) === TRUE) {
|
||||
// echo "New record created successfully";
|
||||
setcookie("SMZ", $sessionID, $expiry);
|
||||
setcookie("SMZ-Auth", $sessionID, $expiry);
|
||||
} else {
|
||||
echo "Error: " . $sql . "<br>" . $conn->error;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue