anyway...
I'm working on a user login script and have it working but without sessions. I want to implement sessions so the user can stay authenticated through the entire application (yet to be developed).
so far I've got a form that registers the user, and a form to login. The login form calls my logging.php script and if the data is entered correctly, logging.php displays a link to proceed to the app. when the link is clicked, the appmenu.php page loads and nothing is print to the page.. i've tried many ways to output the variable but nothing seems to work. my code is below.. also.. i'm using php 4.0.6 (i'm not the admin).
logging.php
Code: Select all
else ($storedPassword == $chkPassword)
{
session_start();
$HTTP_SESSION_VARSї'userID'] = $userID;
echo "Congratulations, you are logged in! <a HREF='appmenu.php'>Proceed</a> <br>";
echo $HTTP_SESSION_VARSї'userID']; //testing output
mysql_close($dbConnect);
}the second echo statement prints out the correct userID.
appmenu.php
Code: Select all
<?
echo $HTTP_REQUEST_VARSї'userID'];
?>It seems i've tried many many different things here in appmenu.php..
i'm starting to think that php isn't set up correctly for what i'm trying to do.
any help is greatly appreciated..
Thanks
Will