restrict user to access page by entering url

can anybody help me. i have some files that can access by admin and permitted by admin that user. But problem with that third user can enter direct url and that page he can access so how to restrict that user from accessing this page. eg: www.manoj.com/myinfo.php /// can access admin eg: www.manoj.com/myinfo.php /// can access by user who allow to admin

but third user accessing this page by entering direct url.

Well, i use seperate db tables for admins and users, and just to be sure, i use different cookie names to distinguish between admins and users in our cms. But if you can’t do that, then just add a seperate session variable, then on your backend pages, just do a simple if statement at the top of the page.

Sponsor our Newsletter | Privacy Policy | Terms of Service