Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

php script redirecting problem

$
0
0

when there is a user logged in they should be directed to members.php but

even when logged in i get redirected to login.php instead of members.php, how do i fix this?

im new aswell so try and make it simple for me :D

<?php

require('connect.php');
$sesuser = @$_SESSION['username'];
$username = @$_POST['username'];
$password = @$_POST['password'];
$submit = @$_POST['submit'];

if ($sesuser)
{
header( 'Location: members.php' ) ;
} else {
header( 'Location: login.php' ) ;
}


?>


Viewing all articles
Browse latest Browse all 13200

Trending Articles