Add it to the page load events of the pages which you do not want 'accessible' after they have logged out.