Is there a way that I can check if the browser will allow cookies.
Request.Browser.Cookies
Doesn’t work when cookies are disabled. It says the browser can support them.
The only other thing I can think of is to try to set a test cookie and then check to see if it ever got set.
Is there anyway to make sure cookies are actually enabled.
According to MSDN there is no way to determine cookies is allowed or disabled by user. The only way to find it out is through writing it and then reading it.
Check the section “Determining Whether a Browser Accepts Cookies” here.
It also has examples which show how to read and write cookies, and states: