PHP Session TimeOut Login Popup with jQuery & Ajax

10 Responses

  1. UsefulTricks.in says:

    you can prevent the alert box only one time rather to each 5 sec. and the best way is to use local-storage rather then ajax , in this you are always contacting to the server this is not a good.

  2. emanuele says:

    but in this way the session is kept alive by the ajax call, it never expires!!

    • Hemant Arora says:

      Very true! I have been thinking this over myself. As soon as you make a server-side call (ajax) the session would refresh automatically. This is a ‘keep alive’ method and not ‘session expiry detection’. I need a method to detect session expiry.

  3. arnie says:

    Arem’t you risking a nasty error message if the session has indeed expired and the noted session key no longer exists? Shouldn’t ‘array_key_exists()’ be used here?

  4. Sundar says:

    Hi, This is working fine in my site. But it’s using my site is very slow.
    How to solve this problem?

    Thanks,
    Sundar

    • Max John says:

      Apparently here nobody answers nobody. I have also asked a lot of question but no one gave an answer and that is not good at all. Sorry Bro

  5. Chris says:

    Great Solution!

  6. kressly says:

    I have downloaded the script but it is not working localy even when my internet is on

Leave a Reply

Your email address will not be published. Required fields are marked *