/    Sign up×
Community /Pin to ProfileBookmark

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,

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @erick spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...