Author Topic: How to show session expired popup?  (Read 5254 times)

0 Members and 1 Guest are viewing this topic.

yaseer_jaffar

  • Sr. Member
  • ****
  • Posts: 25
How to show session expired popup?
« on: June 24, 2015, 09:22:17 AM »
I am using Mibew v2.0

I have set the session expire time in init.php file

@ini_set('session.cookie_lifetime', 14400);

The operator is getting logged out only if we refresh the page. But, I want to show a popup on the session id changes for the operator even if he/she doesn't refresh the page. In which file we need to check the session id changes and show popup.

Please help me. Thanks in advance.

Dmitriy Simushev

  • Moderator
  • Native
  • *****
  • Posts: 345
Re: How to show session expired popup?
« Reply #1 on: June 29, 2015, 10:43:20 AM »
Quote
The operator is getting logged out only if we refresh the page.

I've already told you that the session is not actually expired because of periodical AJAX requests (see https://mibew.org/forums/index.php/topic,191837.msg198581.html#msg198581).

Quote
But, I want to show a popup on the session id changes for the operator even if he/she doesn't refresh the page. In which file we need to check the session id changes and show popup.

Frankly, I don't know why you want to log out operator in this way. You would be better to try something like http://stackoverflow.com/questions/667555/detecting-idle-time-in-javascript-elegantly.

One more thing. If you'll try to get my attention with private message which contents is almost the same as in the topic created by you, I'll ban you! This is the last warning.