Jump to content

php script redirecting problem


benjahnee

Recommended Posts

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' ) ;
}


?>

Link to comment
https://forums.phpfreaks.com/topic/276101-php-script-redirecting-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.