log out file

Where can i find the file that controls the logout action?  I cant get it to dismiss without having to refresh the page.