worldcomingtoanend Posted May 3, 2010 Share Posted May 3, 2010 How can i make the script below not work if the webmaster logs into the CMS and wishes to access the page directly without the script redirecting him or her to a log in screen BUt at the same time making it possible for the script to remain working as it is for web users. Thank you in advance for your help..... <?php session_start(); if (!(isset($_SESSION['girls']) && $_SESSION['girls'] != '')) { header('location: ../mygirls/index.html'); exit; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/200562-how-do-i-deal-with-this-php-login-script/ Share on other sites More sharing options...
Muddy_Funster Posted May 3, 2010 Share Posted May 3, 2010 I think you are going to need to feed him a cookie for this one, and then have the page precheck for the cookie and bypass login if it is there. I havn't played with cookies myself though, so can't help you further than that. Quote Link to comment https://forums.phpfreaks.com/topic/200562-how-do-i-deal-with-this-php-login-script/#findComment-1052455 Share on other sites More sharing options...
worldcomingtoanend Posted May 3, 2010 Author Share Posted May 3, 2010 I will keep trying.... Quote Link to comment https://forums.phpfreaks.com/topic/200562-how-do-i-deal-with-this-php-login-script/#findComment-1052463 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.