Hi friends! i need your help!i have an admin panel that I'm developing for my site it has a login page you put your login and password then you can use the main_admin_page.php where u can insert,delete...but if i type the path to the main_admin_page i can use it without type the username and passorwd.
if i put that url on the address (www.site.com/adm/main_admin_page.php) user can see all the adm's content how can i hide it?user MUST login to have access to the adm directoy! and I would like to know if there is another way to develop an admin panel for my site is there an easier way?

thanks in advance!
(excuse my english)

Set a cookie in the user's browser when they log in then on the admin page, check for that cookie.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.