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. 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 } ?> 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
Archived
This topic is now archived and is closed to further replies.