fran1942 Posted March 27, 2009 Share Posted March 27, 2009 sorry a newbie question here. My users gain access to my site via a login.php file and can then search my database via a second search.php file. This file should only be accessible to someone who has logged on. At present anyone on the web who enters the URL for that search.php file gets the search results displayed in their browser. How do I restrict access of that search.php script to only the people that have logged on ? Thanks Quote Link to comment Share on other sites More sharing options...
Maq Posted March 27, 2009 Share Posted March 27, 2009 Set a session variable to check if they're logged in. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.