View Single Post
Old 03-28-2009, 02:59 PM   #16 (permalink)
murdocsvan
murdocsvan's Avatar
 
Ultra Techie

Join Date: Jun 2007

Location: Surrey, UK

Posts: 849

murdocsvan is on a distinguished road

Default Re: PHP form password with MD5

Okay well that's all working dandy now.

A couple of questions. First of all, when i log in, sometimes it says successful, but then takes me back to the login page anyway.

Also, do i have to put this bit code on every page i want protected by the login system:

PHP Code:
//Check user is logged in
session_start();

if(!isset(
$_SESSION['logged']))
    {
    
header("location:login/main_login.htm");
    } 
or is there a simpler way to protect all my pages?
__________________

murdocsvan is offline