Windows Phone as of today doesn't provide a property or direct API call which will help you identify whether the user has chosen to accept cookies or not. However, we can identify this pretty neatly by trying to get the cookie collection.
So to achieve this, we are going to get the cookie collection for a site which uses cookies and if it returns empty, then the user has turned off the cookies and if it has a count, then the user has preferred to use the cookies. So the below piece of code will help you.
Read More from: Original Source
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
So to achieve this, we are going to get the cookie collection for a site which uses cookies and if it returns empty, then the user has turned off the cookies and if it has a count, then the user has preferred to use the cookies. So the below piece of code will help you.
Read More from: Original Source
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
0 Comments