krabu Posted December 13, 2009 Share Posted December 13, 2009 i have web page containing links to files and some other links. A login is required to access the page but problem is if user accesses one of these links directly, It opens and does not ask for a login. I am using xampp. Plz help Link to comment https://forums.phpfreaks.com/topic/184976-protecting-direct-links/ Share on other sites More sharing options...
vinpkl Posted December 13, 2009 Share Posted December 13, 2009 at the time when the user gets login, create a session. and in all pages add a condition to check whether session is set or not. if session is false redirect them to login page. vineet Link to comment https://forums.phpfreaks.com/topic/184976-protecting-direct-links/#findComment-976490 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.