we are implementing a custom login (based on an auth cookie given by a third party authentication service). When the cookie arrives, we trigger the drupal user_login. When the user logs out (via a custom box, NOT drupal logout link), we trigger the user_logout.
The problem is: if you clear the cookie auth, you remain logged on drupal. What hook can we implement to trigger the logout anytime the cookie auth disappear?