Here's some RPG IV from the NOVA CMS system which I wrote to support his website:
D expDate S Z Inz
// Create a cookie with a timeout
expDate = %timeStamp() + %Days(10); // Expire in 10 days.
setCookie('USERID' : 'BOB' : expDate : '/;');
// Create a Session Cookie, pass *OMIT for the expdate.
setCookie('PWD' : 'ROSEBUD' : *OMIT : '/;');
I prefer function
Thanks Bob. Gave me what I needed. Could you add the eatCookie() function? And maybe a buyCookie, bakeCookie, or stealCookie at the same time?
Okay, okay... how about this secret family recipe: