I have the same problem @kerolos saber. Apart from automatically calling Ajax to check for specific session end, is there any other way?