![]() |
|
![]() | ||
|
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. | |
| |
| |
| |
|
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
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 |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |