add support of session timeout for ajax