Foser Posted July 15, 2007 Share Posted July 15, 2007 <?php if ($_SESSION['LOGGEDIN'] != TRUE){ echo "You are not logged in. Click <a href=\"../index.php\">here</a> to login."; exit;} ?> I have this at the top of my member page and i wanted to make a session page to i required this again for that page. but for this page this executes... but when i go back to member page i have no problem. :S any ideas? Link to comment https://forums.phpfreaks.com/topic/60076-session-security-issues/ Share on other sites More sharing options...
trq Posted July 15, 2007 Share Posted July 15, 2007 Sorry, but your post makes little sence. Link to comment https://forums.phpfreaks.com/topic/60076-session-security-issues/#findComment-298802 Share on other sites More sharing options...
MadTechie Posted July 15, 2007 Share Posted July 15, 2007 i followed this up to I have this at the top of my member page and i wanted to make a Link to comment https://forums.phpfreaks.com/topic/60076-session-security-issues/#findComment-298823 Share on other sites More sharing options...
cooldude832 Posted July 15, 2007 Share Posted July 15, 2007 read up on included custom library construction. This is what I do not required for every at the top of each page (pre any headers I have) <?php require_once(requires.php); ?> Requires is a file that distributes the rest of the includes based on which page you are on. That way you can update al pages easily through this Link to comment https://forums.phpfreaks.com/topic/60076-session-security-issues/#findComment-298827 Share on other sites More sharing options...
ShoeLace1291 Posted July 15, 2007 Share Posted July 15, 2007 <?php if ($_SESSION['LOGGEDIN'] != TRUE){ echo "You are not logged in. Click <a href=\"../index.php\">here</a> to login."; exit;} ?> I have this at the top of my member page and i wanted to make a session page to i required this again for that page. but for this page this executes... but when i go back to member page i have no problem. :S any ideas? Try this <?php if(!$_SESSION['LOGGEDIN']){ echo "You are not logged in. Click <a href=\"../index.php\">here</a> to login."; } else { member only content here. } ?> ?> Link to comment https://forums.phpfreaks.com/topic/60076-session-security-issues/#findComment-298829 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.