Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Posts
    217
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question securing pages prob??

    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
    PHP Code:
    <?php
    //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..

  • #2
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You should have a login check across all the protected pages.

    Include the login check via a common include function.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •