View Full Version : User Validation Quesion
SChaput
10-08-2008, 03:23 AM
Im making a user login page that protects webpages. If the user enter's in the right combination of strings on login page, it lets them go to 'mypage1'. However, if the user were to just type in the url for 'mypage1' (mypage2, mypage3, etc) it would let them access it. How do i make sure the users have gone through validation to view any of 'mypages'.
Thanks
Use sessions — set a session value when they log in, and check that the value is set on the protected page.
SChaput
10-08-2008, 03:23 PM
Thank you for the quick response.
Im not entirely sure how to do this without using a mysql database.
any help would be greatly appreciated.
Simply put <?php session_start(); ?> at the top of the page, and use the array $_SESSION as you would any other array.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.