Click here to Skip to main content
13,045,657 members (54,431 online)
Rate this:
Please Sign up or sign in to vote.
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 25-Dec-11 4:49am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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).
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#
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 25 Dec 2011
Copyright © CodeProject, 1999-2017
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