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