View Full Version : securing pages prob??

01-04-2006, 10:47 AM
Helllo everybody!!
when the user makes a successful log In.....then users/index.php page is displayed.
at the top of the users/index.php it has st like this code for unauthorised access

//if session is not set redirect to the login page
In the users folder there are also lots of files like editProfile.php,editGallery.php,displayGallery.php etc..which are displayed in the browser using switch case as ?module=editProfile,?module=editGallery.
My prob???
How to secure the editProfile.php,editGallery.php,displayGallery.php etc..from the unauthorised access..I want these files should displayed when only the scripts calls not when the user directly browses from the URL.
Note: Only index.php is unaccessible from the unauthorised access.
Plz help me to secure the pages from the malicious users..
I hope u got my problem
Thanks u in advance..

01-04-2006, 01:51 PM
You should have a login check across all the protected pages.

Include the login check via a common include function.