Hello. I am writing a script that uses $SESSION['username'] and $SESSION['password']; variables to hold the login of the user over multiple requests. It all works until I get to this page. Basically, this page takes some data in the form of a post and checks to see if the information is actuall there. The post is a bunch of checkboxes stored in an array
$userids = $_POST['id'];
if (count($userids) < 1){
header( "refresh: 4; url=selectdates2.php" );
echo 'You did not select any ushers. Please try again.';
echo '<a href="selectdates2.php">Continue</a>';
die;
}
But, after the redirection, the $_SESSION['username']; variable is lost and it is set to ask automatically for a login.
Any help would be great. If more code is needed i will post it.
Thanks,
Ryan
EDIT:
Well after more investigating, it appears that when I navigate from the previous page to this page, it switches the value of the $_SESSION['username'] into something very weird indeed. It almost pulls another value from the database. Because of this things go awry as they should.