i have domain like www.example.com. In that i have 3 folders employee/account/dashboard in each folder i have separate login page. the problem is if i logged in 2 panels like www.example.com/employee, www.example.com/dashboard then if i logged out from any one panel automatically session destroyed another panel also. so how to solve the above problem. Note: i used different session variable in each subfolder.
session_start();
session_unset($_SESSION['admin_name']); //logout page for dashboard
header("location:index.php");
session_start();
session_unset($_SESSION['employee_id']); //logout page for employee
header("location:index.php");
i want if i logout from one panel(dashboard), the another panel (employee) should not logout.