nadi Posted November 19, 2012 Share Posted November 19, 2012 The global error handler has been working fine but some of my users seem to be bookmarking the search pages and then when they reload the page, errors are generated. Is there any way to 1) stop them from bookmarking, or 2) filter out errors caused by bookmarking. Using PHP 5.2.14 and MySQL 5.1.56. I am using Sessions and POST. The user uses the search form to generate a list of jobs (page 1); then each job entry has a link to a longer description (several different page 2's). Thanking you in advance for any help you may give. Link to comment Share on other sites More sharing options...
Larry Posted November 19, 2012 Share Posted November 19, 2012 No, you cannot stop someone from bookmarking a page, which would actually be a bad thing to do anyway. How about you fix the code so it doesn't have errors? 1 Link to comment Share on other sites More sharing options...
Larry Posted November 19, 2012 Share Posted November 19, 2012 Or, better yet, as you know visitors want to bookmark the search results, why not make that possible? Link to comment Share on other sites More sharing options...
nadi Posted November 20, 2012 Author Share Posted November 20, 2012 Thanks for the info and suggestion. I chose not to let the users bookmark. POST is a little more secure than GET (GET allows bookmarks) and security is a priority because our server attracts a lot of hackers. I added this code to the pages. I could have just redirected them but I wanted the visitor to know why they were not able to access the page and so I did it this way. if (empty($_POST)) { echo 'You must log into the ...... Internship site. <br />'; echo '<a href="login.php"> Login page</a>'; exit; } Link to comment Share on other sites More sharing options...
Recommended Posts