cs1h Posted November 26, 2007 Share Posted November 26, 2007 Hi, I am trying to change my index page so that it recognizes wether or not someone is logged in and if they are not it replaces an image on the page with a login box. Does any know a good tutorial on how to do this, or does anyone know how to do it themselves? Many Thanks, Colin Link to comment https://forums.phpfreaks.com/topic/78915-solved-help-with-cookies/ Share on other sites More sharing options...
cs1h Posted November 26, 2007 Author Share Posted November 26, 2007 This is what I have so far, but does anyone know how I can adapt it? <?php $username = $_COOKIE['loggedin']; if (!isset($_COOKIE['loggedin'])) die("You are not logged in, <a href=index.php>click here</a> to login."); ?> Thanks Colin Link to comment https://forums.phpfreaks.com/topic/78915-solved-help-with-cookies/#findComment-399385 Share on other sites More sharing options...
revraz Posted November 26, 2007 Share Posted November 26, 2007 You marked it as solved but still asked for help. So is it solved or do you still need help? Link to comment https://forums.phpfreaks.com/topic/78915-solved-help-with-cookies/#findComment-399412 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.