A
Anonymous
Guest
I would not reccomend using session_register. That is the old archaic way of doing sessions.
In your header redirect you must include your full address of the redirect. Older browsers do not like to use a partial URL.
For more information on the super globals that I used above see http://www.php.net/manual/en/reserved.variables.php
Code:
session_start();
//put the password in the session
$_SESSION['pass'] = $_POST['password1'];
//put the username in the session
$_SESSION['id'] = $_POST['username1'];
//go to the secured page.
header("Location: http://yourdomain.com/members/".$_SESSION['id'].".php");
In your header redirect you must include your full address of the redirect. Older browsers do not like to use a partial URL.
For more information on the super globals that I used above see http://www.php.net/manual/en/reserved.variables.php