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

i'm working on asp.net web application using c#.

i want to know, how to check if browser has cookies enabled or not.

if its not enabled, how can i enabled it or prompt the user to do it.


Thanks
Posted

unfortunately you cant..only way to determine is to try write a cookie n read it..

more details here..

http://msdn.microsoft.com/en-us/library/ms178194.aspx[^]
 
Share this answer
 
SQL
if (Request.QueryString["AcceptsCookies"] != null)
        {}
 
Share this answer
 

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