Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 5:49am

1 solution

Rate this: bad
good
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).
  Permalink  
Comments
souvikcode at 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#
John Simmons / outlaw programmer at 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)

  Print Answers RSS
0 OriginalGriff 280
1 Jochen Arndt 150
2 Kornfeld Eliyahu Peter 120
3 PIEBALDconsult 110
4 Richard MacCutchan 105
0 OriginalGriff 6,055
1 DamithSL 4,621
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,500
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 25 Dec 2011
Copyright © CodeProject, 1999-2014
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