PHP Session Timeout + Login Popup with Ajax Login

Why popup login modal box session timeout in PHP using Ajax. Sometime when we are browsing some sensitive or private website we must have to face login and registration. So when we are using this website and we open multiple pages, the browser will allow us. But when we log out and forgot to close