My web page uses bootstrap and jquery, and during a rather long page load, which reads some PHP session variables with JSON_ENCODE, pressing the ESCAPE key seems to stop the process, aborting the read, and causing the page load to fail.
This occurs in both Chrome and Firefox.
What could be causing this, and is there any way to prevent this?
Thank you.
EDIT *(added the ignore_user_abort but ESCAPE still aborts):
<?php ignore_user_abort(true); ?>
var db = <?php echo (isset($_SESSION["data"])) ?
json_encode($_SESSION["data"], JSON_PRETTY_PRINT) : 0 ; ?>;
if (!db) db = {};