valanto
08-21-2007, 03:19 PM
In my website I create a typical cookie, after the page has finished loading, using a javascript script using the standard way of setting cookies as found in the w3schools tutorial (http://www.w3schools.com/js/js_cookies.asp):
function setCookie(c_name,value,expiredays)
{
var exdate=new Date()
exdate.setDate(exdate.getDate()+expiredays)
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
}
My script works an all browsers i've tested it on (firefox, internet explorer, opera) EXCEPT Safari!
Does anyone know how to overcome this? Any suggestions are welcome!
Thank you,
Valanto
function setCookie(c_name,value,expiredays)
{
var exdate=new Date()
exdate.setDate(exdate.getDate()+expiredays)
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
}
My script works an all browsers i've tested it on (firefox, internet explorer, opera) EXCEPT Safari!
Does anyone know how to overcome this? Any suggestions are welcome!
Thank you,
Valanto