Make sure your browser accepts cookies.

Is there a way to check if the browser allows cookies.

Request.Browser.Cookies 

Does not work when cookies are disabled. He says the browser can support them.

The only thing I can think of is to try setting a test cookie and then checking if it has ever been set.

In any case, make sure that cookies are indeed enabled.

+5
source share
5 answers

According to MSDN, there is no way to determine that cookies are enabled or disabled by the user. The only way to find out is to write it and then read it.

" , cookie" .

, , cookie, :

Cookies , cookie. , .

+9

, asp.NET. , , .
, ( vb.NET, , Google #): http://forums.asp.net/t/1044823.aspx

+2

: cookie, , cookie.

+1
source

As everyone stated, you need to install, redirect, detect (if you do not want only client-side detection, in this case javascript can perform a check) Someone wrote a control for this.

+1
source

The HttpCapabilitiesBase.Cookies property gets a value indicating whether the browser supports cookies. See the documentation .

0
source

All Articles