ASP.NET: How to Detect Authentication Timeout
I've seen multiple articles like this one that explain how to detect that a user's session has timed out. And for clarity's sake, these articles are referring to the timeout value defined by this web.config line: <sessionState mode="InProc" cookieless="UseDeviceProfile" timeout="120" /> Not to get into that method too much, but this involves checking that Session.IsNewSession is true and that a session cookie already exists. But I haven't seen any articles on how to detect authentication timeout -- the one defined by this web.config line: <authentication mode="Forms"> <forms loginUrl="~/Home