In my ASP.NET 4.0 Web Forms Application I’m working with forms authentication, and Cookieless is set to UseCookies. The Login control in out web project does not display an error message if cookies are disabled in the user’s browser.
Is there a way to catch this error elegantly, in order to display a nice error message to users? Just “not logging in” is a bit confusing go them, obviously.
Check out the answer by @Software Monkey and @thomasrutter on this post How to detect server-side whether cookies are disabled
These are the best approaches.