how to call an external script once the users is expired?