Skip to content
Snippets Groups Projects
Commit b961c948 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #4132 add click evetn listener to reset session time limit

parent 3716cf0e
No related branches found
No related tags found
No related merge requests found
......@@ -211,8 +211,21 @@ if (isset($_SESSION['HTTP_REFERER'])) {
$core->load_html();
$core->load_header();
$time = $core->get_session_time_expire();
?>
if (!isset($_REQUEST['display'])) { ?>
<script>
var element = document;
element.addEventListener('click', function() {
window.clearTimeout(window.chronoExpiration);
window.chronoExpiration=window.setTimeout('redirect_to_url(\'<?php echo $_SESSION['config']['businessappurl']; ?>index.php?display=true&page=logout&logout=true\')', '<?php echo $_SESSION['config']['cookietime']; ?>'*60*1000);
});
</script>
<?php } ?>
<body style="background: #f2f2f2;" onload="session_expirate(<?php echo $time;?>, '<?php
echo $_SESSION['config']['businessappurl'];
?>index.php?display=true&page=logout&logout=true');" id="maarch_body">
......@@ -279,7 +292,7 @@ if (file_exists($path)) {
<?php
}
echo '<div id="return_previsualise_thes" style="display: none; border-radius: 10px; box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.4); padding: 10px; width: auto; height: auto; position: absolute; top: 0; left: 0; z-index: 99999; color: #4f4b47; text-shadow: -1px -1px 0px rgba(255,255,255,0.2);background:#FFF18F;border-radius:5px;overflow:auto;">\';<input type="hidden" id="identifierDetailFrame" value="" /></div>';
echo '<div id="return_previsualise_thes" style="display: none; border-radius: 10px; box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.4); padding: 10px; width: auto; height: auto; position: fixed; top: 0; left: 0; z-index: 99999; color: #4f4b47; text-shadow: -1px -1px 0px rgba(255,255,255,0.2);background:#FFF18F;border-radius:5px;overflow:auto;">\';<input type="hidden" id="identifierDetailFrame" value="" /></div>';
if ($core->is_module_loaded('basket')
......@@ -308,4 +321,4 @@ if (file_exists($path)) {
?>
</div>
</body>
</html>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment