Click here to Skip to main content
12,508,112 members (47,841 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET
Hi

I am creating one Asp.Net website where i want to use Cookies, but I am afraid that if someone disable cookies from the browser, application will not work properly.

Could you please help me to avoid this situation .


Regards
Rajiv Kumar
Posted 11-Jan-13 0:00am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hi,
a) You cannot stop end user to disable cookies.
b) You can first check whether cookies are enabled in browser or not. If not advice user to enable cookies.
c) Or you can also use local storage for such purpose.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Hi,

You can't stop end user to disable cookie in browser.

But work around is local storage:

Why[^]
How[^]
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160927.1 | Last Updated 11 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100