I use the old version of JS Support Ticket (2.1.1 version) on one web site, and session expires in this version. But I’am testing updated version JS Help Desk in clone site, session not expire in new version.
I don’t say this for registered wordpress user. This problem is on check status page, which page user must enter their email adress and ticket id.
Hi,
in plugins/js-support-ticket/modules/ticket/tpls/ticketdetail.php
Add the following lines of code at the top of the file.
<?php if(!is_user_logged_in()){ ?>
<body onload=”set_interval()” onmousemove=”reset_interval()” onclick=”reset_interval()” onkeypress=”reset_interval()” onscroll=”reset_interval()”>
<script type=”text/javascript”>
var timer = 0;
function set_interval() {
timer = setInterval(“auto_logout()”, 900000);
// the figure ‘900000’ above indicates how many milliseconds the timer be set to.
}
function reset_interval() {
//resets the timer. The timer is reset on each of the below events:
// 1. mousemove 2. mouseclick 3. key press 4. scroliing
if (timer != 0) {
clearInterval(timer);
timer = 0;
timer = setInterval(“auto_logout()”, 900000);
}
}
function auto_logout() {
window.location=”<?php echo jssupportticket::makeUrl(array(‘jstmod’=>’jssupportticket’, ‘jstlay’=>’controlpanel’)) ?>”;
}
</script>
<?php } ?>
Thank you for your answer, I added the codes in ticketdetail.php. I enter my ticket id and email adress on ticket status check page. After 4 hours I refresh the page but session still active. I changed the ticket number in url and error message showed. I entered again my ticket url and can see my ticket status info, so there is no need to enter ticket id again. The codes not work for this problem.
Can you help me please.
Hi,
Please open support ticket at jshelpdesk.com.
Regards,
Help Desk team