title: session logout page issue in iframe using jsp/servlet
body: <p>Hi i'm working in the web application using jsp/sevlet,i'm facing the session logout page issue in iframe 
  <img src="https://i.stack.imgur.com/xMXQX.jpg" alt="sample web page"></p>
  
  <p>i use the following code in my parent page for my session time out</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      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"
          }
      }
  &lt;/script&gt;​​​​​​​​​​​​​​​​​​​​
  </code></pre>
  
  <p>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 </p>
  
  <p>in other case if i use the session time out code in the my iframe page then the issue is
  <img src="https://i.stack.imgur.com/hJAkm.jpg" alt="sample page 2"></p>
  
  <p>the logout page is coming inside the iframe page</p>
  
  <p>Any suggestions or other explanations for solving this mystery?
  Please let me know</p>