I am working with several different php pages and php scripts.
For example I have the page index.php
The user can click on the link script_page.php?id=415354 on the index.php page, and the script_page.php page will check for the id and using some other scripts to verify access it will forward to employees.php using:
die(header("Location: employees.php"));
Sometimes if I click too fast or click twice, the script_page.php will stop running and never make it to employees.php
What could cause this to be happening or how could I prevent this from happening?
Thank you for your assistance.
I am using IIS7 and PHP5
header("Location: employees.php"); die();the form you use doesn't make sense, asheader()won't return a value.script_page.php?id=415354link?! How do you know script_page.php stops running? Are you sure it's even getting to script_page.php? Is it possible the request is being cancelled?