What is PHP session_start()
The PHP session system lets you store securely data in the $_SESSION global array. A typical example is to store the user’s identifier in the session when they type in their password: if ($user = try_login($login, $password)) $_SESSION[‘user’] = $user; Then, you can access that information on all other pages: if (isset($_SESSION[‘user’])) // logged in … Read more