View Single Post
Old 13-01-2007, 05:30 PM   #9 (permalink)
Zeggy
Member
 
Join Date: Nov 2006
Posts: 47
Default Re: [PHP] Login script with MySQL

To check if a user is logged in or not, you need to put this code on the top of the page:
PHP Code:
<?php
session_start
();
if(!
session_is_registered(myusername)){
header("location:main_login.php");
}
?>
Zeggy is offline   Reply With Quote