<?php
session_start();
if ($_POST['username'] == $username && $_POST['password'] == $password ) {
$_SESSION['loggedIn'] = true;
} else
$_SESSION['loggedIn'] = false;
?>
And later in the same page, I include another file which has the links to the pages within the secured section of the site:
<?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?
Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames
"Black holes are where God divided by zero."
-- Steven Wright
------------------------------------------------------------------------ ---
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php