I'm having a problem with sessions. My user's are having to login twice.
Here's the chunk of my login php file where sessions are assigned:
Code: Select all
if ($arr['Password'] == $pwHashed)
{
session_start();
$_SESSION['FileP'] = strtolower(str_replace(" ","",$arr['SLName']));
$_SESSION['Password'] = $pwHashed;
$_SESSION['Username'] = $uid;
}
else
{
die ("Invalid Password.");
}
header("Location: http://(***************");Code: Select all
extract($_SESSION) or die("<a href='http://*****************'>Log in</a>");Thank you.