Cpanel – After session expired not redirecting to login page in server but in local host it does
I am using this if (!isset($_SESSION['login_success'])): header("Location:index.php"); die(); endif; It does work in local host but after i uploaded the site in server, when session expires it stays in the same page and not redirect to index or login page.