Suvodip 2025-03-19 10:45:37 +05:30
parent b813a79fe8
commit 9f69cd9b9f
1 changed files with 2 additions and 1 deletions

View File

@ -19,8 +19,9 @@
$_SESSION['userType'] = $user['type'];
$_SESSION['isLogedin'] = true;
$_SESSION['customerId'] = $user['customerId'];
var_dump($_SESSION);
// var_dump($_SESSION);
echo "Login successful! Welcome, " . htmlspecialchars($user['email']);
header("Location: /");
// var_dump($_SESSION);
} else {
echo "Invalid email or password.";