nyzach Posted January 18, 2008 Share Posted January 18, 2008 After login, I got into member area. the url shows: localhost/member.php The problems is, people can directly enter this member area from localhost/member.php instead of going through login page. How to hide the content of member.php from non-members? thanks. Quote Link to comment https://forums.phpfreaks.com/topic/86582-solved-how-to-show-the-member-area-only-to-members/ Share on other sites More sharing options...
pocobueno1388 Posted January 18, 2008 Share Posted January 18, 2008 You need to check to see if the user is logged in on every page that you only want logged in members to be able to see. So you need to register a session when the user logs in, then check if that session exists on the members page. Quote Link to comment https://forums.phpfreaks.com/topic/86582-solved-how-to-show-the-member-area-only-to-members/#findComment-442384 Share on other sites More sharing options...
nyzach Posted January 18, 2008 Author Share Posted January 18, 2008 You are fast and great. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/86582-solved-how-to-show-the-member-area-only-to-members/#findComment-442390 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.