PLEASE HELP….. this is killing me…
need to set expiration time of 5 min..
I can get the first two cookies to set with the expiration but not the one for the phone numbers..
I have gotten it to expire but with no phone number and have gotten it to set with ohone numberbut no expiration… can’t seem to get both..
latest variation is this:
<script language=”JavaScript” type=”text/javascript”>
function doCookies()
{
var today = new Date();
var expire = new Date();
expire.setTime(today.getTime() + 300000 );
document.cookie = “cookieEnabledPersist=true; expires=” + expire.toGMTString();
document.cookie = “Login=Tech; expires=” + expire.toGMTString();
var setcookiephone = “cookiephone=”;
setcookiephone += document.forms[‘cashsignup’].areacode.value;
setcookiephone += “::”;
setcookiephone += document.forms[‘cashsignup’].phoneprefix.value;
setcookiephone += “::”;
setcookiephone += document.forms[‘cashsignup’].phonesuffix.value;
document.cookie = “cookiephone += escape(setcookiephone); expires=” + expire.toGMTString();
}
//–>
</script>
any help would be most appriciated..
Thx,