Hi there.
I am making a website and i was wondering how to make a login program the best way with php's sessions. How do you send sessions from one page to another.. do you need globals on? This is a code piece I made but it doesnt send the value to page 2.
page 1.
session_start();
$username = "phpguru";
$_SESSION['username'] = $username;
echo ' <A HREF="page_2.php">Page 2</A> ';
page 2
session_start();
echo 'Value of the username session: ' . $HTTP_SESSION_VARS['username'];