Login Page Passing $_SESSION
问题 I am not sure why the $_SESSION variable 'user' is not being passed. I do get a successful login, however when redirected to my home page the session is not kept. I use a login status php file to switch some of the nav bar items to sign/register or first name & Logout. Login Page: <?php session_start(); include_once 'dbconnect_new.php'; if(isset($_SESSION['user'])!="") { header("Location: ../index.php"); } if(isset($_POST['btn-login'])) { $s_email = mysql_real_escape_string($_POST['email']);