Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am building a website in which I have to save some symbol which are selected in checkboxlist given,and retrieve those in a listbox when the page is opened(i.e form load event).Now I have to use cookies such that the symbols are saved and retrieved
for different client.But the problem is that,if clients' browser cookie is turned off,
the data will not be saved.So I want to turned on browser cookie and turned off as before programetically.Is this possible?What is the code in c#?
Posted

1 solution

There's nothing you can do about the client having cookies turned off. The best you can do is write your code so that it fails gracefully if cookies aren't turned on (and maybe put a notice on your web page that it requires cookies to be turned on to work as intended).
 
Share this answer
 
Comments
souvikcode 25-Dec-11 11:06am    
But I have to save those data in client side.So how can I do this?What
should be used?Please add the required code in c#
#realJSOP 25-Dec-11 12:00pm    
For the last time - if the client does not have cookies enabled, there is NOTHING you can do about it.

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