Thread
:
[PHP] Login script with MySQL
View Single Post
13-01-2007, 05:30 PM
#
9
(
permalink
)
Zeggy
Member
Join Date: Nov 2006
Posts: 47
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
View Public Profile
Send a private message to Zeggy
Find More Posts by Zeggy