session - Maintaining state between browser tabs in PHP -
I am creating a web application that allows users to run a query against one of two databases . They are allowed to submit 1 query to each database only at one time. Currently, I'm setting $ _SESSION ['Running Advanced Quality'] (for example) to tell me whether they are running a query, open another browser tab and kill the resource again It does great work except it ...
If I start a query in a tab, then close that tab before it ends, the flag is not unset. So, if I open the page again, then I can not put any questions because it thinks that I still have one running. Is anyone advised to be around this?
Do not set this value for example, but for the Unix timestamp, and so far the last query -Tymestamp is investigating, setting some time difference that should go to execute the next query. Reminder to set block-time for secure value - The longest query that can be executed. If the user closes their tab, then it will be "unlocked" shortly afterwards.
Comments
Post a Comment