int21h Posted June 22, 2007 Share Posted June 22, 2007 how to restrict my webpage, the logged in users are only allow to access page, if not redirected to login form. Quote Link to comment https://forums.phpfreaks.com/topic/56768-how-to-restrict-webpage-using-php/ Share on other sites More sharing options...
cooldude832 Posted June 22, 2007 Share Posted June 22, 2007 read up on sessions but basically <?php if ($_SESSION['loggedin'] = != "yes") { //redirect } ?> Quote Link to comment https://forums.phpfreaks.com/topic/56768-how-to-restrict-webpage-using-php/#findComment-280372 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.