HELP!!
I have the following code which sets up the session variables from a validate PHP script.
The session is created fine but the variables don't seem to passed to other functions which I use to change a page's content.
if ($EncryptedPassword == $Password) {
unset($sess_LoginName);
unset($sess_LoginPassword);
unset($sess_UserName);
unset($sess_EmailAddress);
$sess_LoginName = $txtUserID;
$sess_LoginPassword = $txtPassword;
$sess_UserName = $FirstName." ".$LastName;
$sess_EmailAddress = $UserEmailAddress;
session_register("sess_LoginName");
session_register("sess_LoginPassword");
session_register("sess_UserName");
session_register("sess_EmailAddress");
// Redirect to home page after a successful login
Header("Location: index.php");
exit;
How can I make the variables Global?
Can anyone point me to some good documentation on Sessions and Cookies?
Many Thanks