Subj : Re: Dump Globals
To   : Mortifis
From : echicken
Date : Sat Feb 16 2019 12:32 pm

 Re: Re: Dump Globals
 By: Mortifis to echicken on Sat Feb 16 2019 13:04:07

Mo> perfect, thank you, one thing I am having trouble with is set_cookie(...,
Mo> (time() - 1000, ...) I keep getting an error: cannot convert NaN to
Mo> integer

http://wiki.synchro.net/server:web#extra_global_methods

What you're passing as the expiration time can't be interpreted as an integer.
Mind the order of parameters you're passing to set_cookie. The first two
parameters need to be strings. The third parameter is optional, and if passed
needs to be a number, being the expiration time. See the wiki for the rest of
the parameters.

So what you want is something like this:

set_cookie('key', 'value', time() - 1000); // Or time() - 1000 or whatever

---
echicken
electronic chicken bbs - bbs.electronicchicken.com - 416-425-5435
� Synchronet � electronic chicken bbs - bbs.electronicchicken.com