|
|
 |
 |
 |
 |
Javascript / Client Side Development
|
 |
 |
 |
 |
 |
 |
 |
 |
Bad Request follows cookies creation
Hi, When the user clicks on an image, I creates cookies like that : createCookie("CutFlags", getEl('ctl00_cpHidden_hidCutFlags').value, 0); createCookie("OrgFlags", getEl('ctl00_cpHidden_hidOrgFlags').value, 0); createCookie("OrgQuotes", getEl('ctl00_cpHidden_hidOrgQuotes').value, 0); createCookie("CookieComments", getEl('ctl00_cpBody_txtComments').value, 0); function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; }
The problem is that as soon as the next postback fires (I'm using asp.net), it triggers a Bad Request in Firefox. Only way to get around it, is to close the browser and reopen it. This doesn't occur in IE. What do I do wrong ?? Thanks
|
 |
 |
 |
 |
|