First off, session_is_regi stered, is deprecated, so should not really be used.
You can use the $_SESSION variables to store if the user has authenticated. Consider this very basic example:
login.php
Code:
<form action="auth.php" method="post"> U: <input type="text" name="username"><br /> P: <input type="password"
Leave a comment: