HighDots Forums  

Solution: IE not saving javascript cookie when closing?!

alt.html.dhtml alt.html.dhtml


Discuss Solution: IE not saving javascript cookie when closing?! in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ask Josephsen
 
Posts: n/a

Default Solution: IE not saving javascript cookie when closing?! - 07-27-2006 , 05:38 AM






Ask Josephsen skrev:
Quote:
script language="javascript" type="text/javascript"
function SetCookie ( name, value, expiredays )
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
var res = document.cookie=name+ "="
+escape(value)+((expiredays==null) ? "" : ";expires="+exdate);
return res;
}
The
'...expires="+exdate);' part should be changed to:
'...expires="+exdate.toGMTString());'

.... )


../ask


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.