I've got a plugin to reuse HTTP authentication which is working great. No problems except the first page visit after a session expires results in the initial page not having the user logged in. If the page is refreshed or another link clicked, the user is logged in. Is there a way to call whatever clears the session login cookies at the start of the HTTP authentication plugin? That would solve the problem completely so that users were always logged in. Even on the first visit after the session expired.
For reference, the HTTP Authentication plugin is posted at this vBulletin.org thread: