rajkpy Posted May 2, 2009 Share Posted May 2, 2009 Please note: I am urgently in need of a solution to this question, for that i have posted this question in different forums so that i can get an answer as quickly as possibly. Please accept my apologies for any inconvenience caused. Hi experts, I have a application which consists of a login page and other application specific php file. At present the users are able to access the application files directly through the url. Now I want to have an access control feature implemented by which when a user first tries to access the files directly through url, they are redirected to the login.php page. and once the user is able to login successfully they are then redirected to the file requested previously and now he can access any of the application files by directly mentioning the url. Now since I have about 1000 application specific file, please let me know how i can implement this access control feature. As i dont want to including any session specific feature in all the 1000 files, it would be great if I have a centralized way of doing this. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/156574-redirecting-first-time-users-to-login-page/ Share on other sites More sharing options...
Ken2k7 Posted May 2, 2009 Share Posted May 2, 2009 mod_rewrite + sessions for the file previously requested + cookie for login Link to comment https://forums.phpfreaks.com/topic/156574-redirecting-first-time-users-to-login-page/#findComment-824415 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.