View Full Version : What do you do when cookies are not allowed?
GameCodingNinja
05-02-2009, 07:31 PM
On my web site I have a simple picture flip book. I store some variables in cookies but it will error if cookies are not allowed.
Is there a check I can do in my vwd code to see if cookies were not allowed?
Freon22
05-02-2009, 08:27 PM
No but what you can do is set a cookie when they first enter your site. Then either on a postback or on the next page see if you can access that cookie. If you can't then they have cookies not allowed, for me I check if both javascript and cookies are enabled.
But I don't think its that big of a problem these days because just about every site uses cookies and if you have them disabled I don't think you can go very far on the net.
Unknown
05-03-2009, 08:49 AM
But I don't think its that big of a problem these days because just about every site uses cookies and if you have them disabled I don't think you can go very far on the net.
I would have to agree with the above, its rare to find a consistent internet user with cookies disabled.
If, however, you would like to store information pertaining to that user's session I think using the Page.Session property instead of using cookies is your best bet.
HostingASPNet
05-04-2009, 02:25 PM
Hello,
You could read about Cookieless ASP.NET here - http://msdn.microsoft.com/en-us/library/aa479314.aspx
Regards
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.