Checks to see if $_SESSION[“user”] has been defined: <?php // allows session info to be used on this page session_start(); // if there is no user session info, exit fast if( !isset($_SESSION[“user”]) ) { header(“Location: login.htm”); session_write_close(); exit(); } ?> <html> … The page goes here! … What does “session_write_close();” do?
Hi there! Click one of our representatives below and we will get back to you as soon as possible.