Jump to content
Larry Ullman's Book Forums

False Errors Due To Bookmarked Pages


Recommended Posts

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

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

 Share

×
×
  • Create New...