Google Answers Logo
View Question
 
Q: We need to resolve a cookie error on our site. ( No Answer,   7 Comments )
Question  
Subject: We need to resolve a cookie error on our site.
Category: Computers > Programming
Asked by: dslus-ga
List Price: $10.00
Posted: 30 May 2002 21:55 PDT
Expires: 03 Jun 2002 21:09 PDT
Question ID: 19033
We need to know why our website is giving some of our users cookie
errors. I need a detailed explaination of why and also the advice and
code on how to fix it. The cookie error shows up after a customer
fills out our form located at http://www.mediafill.com/DSLus/clickx.asp

It is a strange error because some users get the error, other don't.
My best guess is something with the browser cache is messing it up.

Request for Question Clarification by xemion-ga on 30 May 2002 22:51 PDT
Ok, I went through your website.  You don't set any cookies on your
website :-)
 
Four session cookies are set, but these are not considered true
cookies and should never generate "errors".
 
Are you sure these are errors that are being generated?  Do you have
the error code or exact language of the error?
 
You can set Internet Explorer to "prompt" you when these session
cookies appear so that you can either say "yes, I want to let it set
that cookie" or "no, don't let them set that cookie".  Your users
maybe confusing that message with an error.
 
As for caching, it's possible.  Did you ever use cookies on your
website?
 
Unless you can give me some more information, I'm not sure what to
tell you.  Your website doesn't actually use any cookies!  Thanks.
 
xemion-ga 

Request for Question Clarification by j_philipp-ga on 31 May 2002 02:07 PDT
Are you aware there's an error when one loads the referenced paged in
Win IE6? I'm asking because I'm not sure this is the issue that needs
to be solved. 

Clarification of Question by dslus-ga on 31 May 2002 23:57 PDT
One note of clearification: we do not supply the cookie directly... it
should come from the "iframe" located at the bottom of the page. When
the clickx.asp page loads it also load <a href="http://www.directvdsl.com">http://www.directvdsl.com</a> using
the above mentioned &quot;iframe&quot;. I believe the cookie error has something
to do with that fact. As a temporary fix we are trying a pop-up behind
window to force that cookie onto the users system. Thanks in
advance!!! And thanks for all the people who have already posted
ideas! 

Clarification of Question by dslus-ga on 01 Jun 2002 10:42 PDT
It seems that this problem affets most of my users since about 75%+ of
people on the internet use IE5+. Seems to affect IE6 the most?
 
Here are some of the browsers that gave cookie errors... 
 
 
HTTP User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)
Gecko/20020313
 
HTTP User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
.NET CLR 1.0.3705) 
Answer  
There is no answer at this time.

Comments  
Subject: Re: We need to resolve a cookie error on our site.
From: cyclopatra-ga on 30 May 2002 22:14 PDT
 
Do you know anything about the platforms, browsers, etc of the people
having troubles? Is the cookie missing, does it contain incorrect
information, or are the users themselves getting a browser error, and
if so, what is it? All of these things would help answer your
question. :)

Cyclopatra
Subject: Re: We need to resolve a cookie error on our site.
From: fuzzy_logic-ga on 31 May 2002 05:29 PDT
 
there are no cookies set on your site. however in Internet Explorer 6
Does Block functions of your site as default because of the default
privacy policy, i would suggest you find out if the users who are
having the problem are using IE6, if so then this is your problem,
that isn't your problem. you will need to provide special instructions
for IE6 users on your site to explicitly allow your site!

Hope this helps

fuzzy_logic-ga
Subject: Re: We need to resolve a cookie error on our site.
From: petebevin-ga on 31 May 2002 07:00 PDT
 
Dunno about cookies, but there's a Javascript problem with your popup
code: the onFocus handler doesn't have a close quote.
Subject: Re: We need to resolve a cookie error on our site.
From: tomek-ga on 31 May 2002 07:09 PDT
 
First, clean up your BODY TAG. I get the following errors just by
clicking on the link:

JavaScript Error: http://www.mediafill.com/DSLus/clickx.asp, line
53:

syntax error. 

this.blur();  topmargin=
.......................^

Change this:
<body onLoad="NewWindow('http://www.directvdsl.com/partner/index.asp?promoid=SIDTV102651','acepopup','1','1','custom','back');"return
false " onFocus= "this.blur();  topmargin="0" leftmargin="0"
link="#00156E" vlink="#00156E" alink="#00156E">
      
to this:
<body onLoad="NewWindow('http://www.directvdsl.com/partner/index.asp?promoid=SIDTV102651','acepopup','1','1','custom','back');"
return false; onFocus="this.blur();"  topmargin="0" leftmargin="0"
link="#00156E" vlink="#00156E" alink="#00156E">
      
Then add this cache_preventing code to your form:

<Script>
var randomnumber = Math.floor(Math.random()*9999999999);
</script>

document.writeln('<input type="hidden" name="clear_cache"
value="'+randomnumber+'">');

This will ensure that unique number is always in the hidden field and
browser will not use this page from cache.

Hope this helps!
Subject: Re: We need to resolve a cookie error on our site.
From: lexi-ga on 31 May 2002 12:20 PDT
 
I see you're running Microsoft IIS 5.0.  At first glance your session
cookie looks properly formed to me.  One thing to double-check with
your customer is that they have cookies enabled and are otherwise not
specifically blocking your site (as mentioned above with IE6
settings).  Depending on the browser, it may be very straightforward
to figure out what the problem is - some browsers (like Mozilla) make
it very easy to control and examine session cookies, while others
(like IE for Windows) generally make it hard.  If you can have the
customer configure their browser to ask for permission to set the
cookie and walk them through the form, you might be able to see what's
wrong.

There are articles about cookies in the Microsoft KB - for example,
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q176113

A search there might turn up others with similar problems.
Subject: Re: We need to resolve a cookie error on our site.
From: mplungjan-ga on 01 Jun 2002 02:19 PDT
 
No cookies set? Haha - it is setting 17 (!!!) cookies from 3 domains

NS4.79 is happily setting cookies

The body tag is still not correct - there is a rogue and unnecessary
"return false (leftover from an onClick, no doubt) hanging in there
and you attempt to open a 1x1 window which is not permitted by any
browser (and is ignored in both IE and NS)

<body onLoad="NewWindow('http://www.directvdsl.com/partner/index.asp?promoid=SIDTV102651',
'acepopup','100','100','custom','back');" 
onFocus= "this.blur()" 
topmargin="0" leftmargin="0" link="#00156E" vlink="#00156E"
alink="#00156E">


You also have as broken line

document.writeln('<input type="hidden" name="clear_cache"
value="'+randomnumber+'">');

it should be 

document.writeln('<input type="hidden" name="clear_cache"
value="'+randomnumber+'">');
(I hope google shows this as one line)

or

document.writeln('<input type="hidden" name="clear_cache" value="'+
randomnumber+'">');

However if you need the page to stay out of cache, you are better off
turning that off on the server

I am not going to answer this question since javascript errors and
lacking cookies are the order of the day when a page has so many
external scripts

Good luck

mplungjan-ga
Subject: Re: We need to resolve a cookie error on our site.
From: mplungjan-ga on 01 Jun 2002 02:21 PDT
 
PS: I think you want to remove the onFocus="this.blur()" since it
means that noone can actually click on your page

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy