forumnz Posted December 28, 2006 Share Posted December 28, 2006 Hi,I might be totally off track here but anyway...How do you define which files logged in users are allowed to see that users who arent logged in cant.Like say you had a file named file.php and you only waned logged in users to be able to access it.Please help or point me in the right direction.Sam. ;D Link to comment https://forums.phpfreaks.com/topic/32092-how-do-you-define/ Share on other sites More sharing options...
ted_chou12 Posted December 28, 2006 Share Posted December 28, 2006 session or cookie will do, so what you do is you check if the user have the session or the cookie stored previously before you let them see the page content.Ted Link to comment https://forums.phpfreaks.com/topic/32092-how-do-you-define/#findComment-148933 Share on other sites More sharing options...
forumnz Posted December 28, 2006 Author Share Posted December 28, 2006 Im sorry I dont fully understand?Is there a tutorial you could provide me the link for? Link to comment https://forums.phpfreaks.com/topic/32092-how-do-you-define/#findComment-148935 Share on other sites More sharing options...
forumnz Posted December 28, 2006 Author Share Posted December 28, 2006 help?? Link to comment https://forums.phpfreaks.com/topic/32092-how-do-you-define/#findComment-148945 Share on other sites More sharing options...
ted_chou12 Posted December 28, 2006 Share Posted December 28, 2006 If you want a really simple one, i suggest you use htaccess files and store the files in the htaccess protected folder with only what you want your logged in users to see. because with php, a lot more is needed than just setting the cookies.Ted Link to comment https://forums.phpfreaks.com/topic/32092-how-do-you-define/#findComment-148954 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.