This topic is locked

strange behaviour after login

9/2/2023 05:40:24
PHPRunner General questions
F
francesco author

When I try to access in my intranet application from another pc, I can see I successfully login and page jump to welcome page but after 2 seconds it suddenly back to login page, and it looks like I have not login.
If I try to access with mobile or tablet, It works with no problem.
What can I check?

francesco 9/2/2023

this is the code i have in After successful login:
`$_SESSION["groupid"] = $data["groupid"];

if ($data["groupid"]=="admin"){
header("Location: menu.php");
exit();
}
if ($data["groupid"]=="user"){
header("Location:orario_add.php");
exit();
}`

aadham 9/2/2023

Delete the cookies of the intranet application and try logging in again.