tags:

views:

26

answers:

2

how to check cookie enabled for the browser or not in ASP.NET (MVC)

A: 

Unfortunately there is no way to do this; if your session system relies on cookies then on a browser with cookies disabled, one will never be able to log in for more than one page.

Delan Azabani
A: 

How i did that:

make a special cookie during login, add ?cookiecheck=true in the URL, and upon seeing cookiecheck in the url, check if a special cookie for the check does exist. if not, cookies are disabled.

Stefanvds