[SOLVED] Clear potential session variable when using master key. |
8/20/2026 15:34:42 | |
| PHPRunner General questions | ||
|
A
ayctech author
Hi, could you tell me how to clear the page when using MasterKey? I'm calling the "add" function from an external button, but the previous state remains if the process had already reached that point
|
|
|
|
|
ChatGPT 8/20/2026 |
|
To clear the page when using MasterKey in PHPRunner, especially after calling the "add" function from an external button, you can follow these general steps:
If you are still facing issues, consider providing specific code snippets or additional details, and I can help you troubleshoot further. |
|
|
|
Sergey Kornilov admin 8/20/2026 |
|
It is not quite easy to understand what exactly is the problem you are trying to solve. What does 'the previous state remains if the process had already reached that point' mean? |
|
|
A
|
ayctech author 8/21/2026 |
|
I have three tables, using the master-list setup; when I reach the last one, the
I need to know which variable I need to clear to get it to look like that; I call this form from elsewhere, and it loads everything because it starts from step 1 through step 3 (Image 1).
|
|
|
|
Sergey Kornilov admin 8/21/2026 |
|
Thank you, makes more sense. To see which session variables are populated you can print them on the screen. You can something like this to BeforeProcess event of that Add page: |
|
|
A
|
ayctech author 8/21/2026 |
|
I cleared some variables, and it deleted the loaded data; what's needed now is to restore the state so that data can be loaded again. unset($_SESSION["new_instituto_acreditado_masterkey1"]); unset($_SESSION["new_instituto_acreditado_especialidades_mastertable"]); unset($_SESSION["new_instituto_acreditado_masterRecordData"]); unset($_SESSION["new_instituto_acreditado_especialidades_search"]);
|
|
|
A
|
ayctech author 8/21/2026 |
|
I solved it this way, thanks. unset($_SESSION["new_instituto_acreditado_especialidades_mastertable"]); unset($_SESSION["new_instituto_acreditado_mastertable"]); session_write_close(); |
|