Click here to Skip to main content
15,905,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

What is the best method for determining if a users browser has cookies enabled in ASP.NET
Posted

1 solution

Hi,

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"
http://msdn.microsoft.com/en-us/library/ms178194.aspx[^].

It also has examples which show how to read and write cookies, and states:
Quote:
The Cookies property does not indicate whether cookies are enabled. It indicates only whether the current browser inherently supports cookies.

http://stackoverflow.com/questions/6964481/check-if-browser-accepts-cookies[^]

Thanks
S.P
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900