check current session through ajax and js timer function done