ID Session Not being Created after Insert Record unless the page has been Loaded/Refreshed Twice
Hi,
I have created a system that requires the ID of an inserted record to be stored in a Session and then Passed in a URL Variable.
The Issue is that on page load the Par is empty unless the user goes back and repeats the process.
The system work perfectly every time apart from the very first time the page is loaded.
This is an example of the issue:
For Page Load I Get: " Builder.php?ID=1&TempID= " Notice that 'TempID=' has nothing
If I go back and try again it always work and I get " Builder.php?ID=1&TempID=72 " Notice 'TempID=72' I get 72
I have already tried placing
<?php
@session_start();
?>
At the top of all pages but it has not fixed it.
Any Ideas?
Thank you in advance!