I have a bug in which, whenever an error occurs the user seems to get logged out. After much research I find that the situation is not so simple:(note I have dumbed these down a bit to make it easier to follow)Web.config - I turn on Custom Error Mode <customErrors mode="On" defaultRedirect="ExceptionPage.aspx" >