* Thus wrote Seth Willits ([EMAIL PROTECTED]): > I'm logging in via a form, and on the form page it creates the session: > > <?php > session_start(); > if ($_POST['username'] == $username && $_POST['password'] == > $password ) { > $_SESSION['loggedIn'] = true; > } else > $_SESSION['loggedIn'] = false; > ?> > ... > > <?php if ($_SESSION['loggedIn']) require("section_nav.php"); ?> > > > From there, when I go to another page, that same line of doesn't work, > as the links are not shown. Any idea on why that's happening? Did I > miss a step?
Does the next page call session_start()? all pages that use $_SESSION, must call that first. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php