Print Page | Close Window

Cookies

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=4634
Printed Date: 28 March 2026 at 12:37pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Cookies
Posted By: zaboss
Subject: Cookies
Date Posted: 31 July 2003 at 2:01am
I have a strange problem. It seems that my computer cannot deal with local cookies (those set by sites I develope localy under IIS). The same script, up on the net, works OK, on my home computer, it does not. My guess is the it sets OK the cookie, but for reasons I could not understand it can not read them back. For instance, I have a voting script which, after I vote, it is supposed to show me the results, for preventing double voting... Well, it takes me back to vote again. Another example is this very forum software, which I can not log in since it can not read the cookie... But as you can see, when using it from the web, it works.
I went up to uninstall IIS an then re-install it, even I have reinstalled windows, but the problem persists. All work OK, except those cookies.

-------------
Cristian Banu
http://www.soft4web.ro - Soft 4 web



Replies:
Posted By: pmormr
Date Posted: 01 August 2003 at 5:56pm

First: Make sure that your browser has cookies enabled!
Second: How are you setting the cookies, is the Response.cookies command appearing before the <html> tag?
Third: If it works fine when you throw it onto the net why are you worrying about it?



-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: zaboss
Date Posted: 02 August 2003 at 7:27am

1) Yes

2) Yes

3) Because I work on several projects and I want to be sure of them before i throw them on the net.

The strengest thing is that if I redefine the site in IIS works for a while, then it stops working.



-------------
Cristian Banu
http://www.soft4web.ro - Soft 4 web


Posted By: pmormr
Date Posted: 10 August 2003 at 5:48pm

Did you try powering off your server?



-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: zaboss
Date Posted: 10 August 2003 at 11:37pm
Yeap... I gave up. No clues whatsoever.

-------------
Cristian Banu
http://www.soft4web.ro - Soft 4 web


Posted By: Aumuz
Date Posted: 11 August 2003 at 8:23pm

I had the same problem as you.

Do you have somthing like the following...

Response.Cookies("YOURCOOKIE").Domain = " http://www.YOURDOMAIN.com - www.YOURDOMAIN.com "

That was what was "wrong" with my code.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net