Hi i'm working in the web application using jsp/sevlet,i'm facing the session logout page issue in iframe
i use the following code in my parent page for my session time out
<script type="text/javascript">
idleTime = 0;
$(document).ready(function () {
//Increment the idle time 2ounter every minute.
var idleInterval = setInterval("timerIncrement()", 60000); // 1 minute
//Zero the idle timer on mouse movement.
$(this).mousemove(function (e) {
idleTime = 0;
});
$(this).keypress(function (e) {
idleTime = 0;
});
})
function timerIncrement() {
idleTime = idleTime + 1;
if (idleTime == 15) { // 15 minutes
window.location = "logoutPage.jsp"
}
}
</script>
the issue i'm facing is , in case a process is running beyond the session time limit in the my iframe page then the parent page is idel so it automatically getting logout
in other case if i use the session time out code in the my iframe page then the issue is
the logout page is coming inside the iframe page
Any suggestions or other explanations for solving this mystery? Please let me know