Hi, maybe I'm doing something wrong but I can't figure out what. I have a little
script that is supposed to handle two variables from a session, so when a user logs in:
Session start()
$user = user
$pass = pass... redirects to another page.
Now on the index page it reads
Session start()
When you're dealing with session variables, it's a good idea to refer to
them using the new global variables.
? //start.php
session_start();
$_SESSION['user'] = bob; // register the session var
$_SESSION['pass'] = secret; // register the session var
header(Location: p2.php);
?
? //
2 matches
Mail list logo