Okay, so I’m building this user management system for a client and up until a few day ago it was working perfectly. I mush have edited some code or done something because now it just ain’t working! Have been looking through the code for ages now and I just can’t find any errors. Can you?
There are 3 files: login.php, userauth.php and index.php. Login.php is where the user enters their details to login, these details are then passed to userauth.php and if correct the browser is then redirected to index.php. The problem is this. When I get to the index page the session variables are cleared. I have checked at each stage and the data is present up until the index page. Now if you were wondering there is a base.php, this is just connecting to the database – and no there aren’t any errors or odd code in there, but I’m not too keen on sharing my login details with you as you can imagine!
< ?php echo $_SESSION['loggedin']; ?>
< ?php echo $_SESSION['username']; ?>
< ?php echo $_SESSION['password']; ?>
I have been pulling my hair out over this and if you can tell me why it isn’t playing ball I would be really grateful.
You must be logged in to reply to this topic.