[B]Hello all who can help
I have a problem with reseting my cookies…..
I want my page to set cookies to zero on onload, but i csnt seem to get it right……
this is my code:
<? setcookie(“Test”, “1”); $noheader=ON; include(‘up.php’); ?>
<SCRIPT language=”JavaScript”>
function confermaclose() {
event.returnValue=(‘Attenzione se vuoi importare un’altra lavorazione dovrai inserire nuovamente il nome utente e la password per accedere ad EDILBANCA!!! Vuoi uscire?’);
}
function restest() {
event.setcookie(“Test”, “”);
}
</SCRIPT>
<body onbeforeunload=”confermaclose();” onUnload=”restest();”>
</body>
</html>
what should i do…..this does not work and i dont know why
could anyone touch up the code for me to make the cookies reset to zero
if so thanks in advance