Subj : Re: Dump Globals
To   : echicken
From : Mortifis
Date : Sat Feb 16 2019 03:33 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
>  Mo> set_cookie(..., (time() - 1000, ...) I keep getting an error: cannot
>  Mo> convert NaN to 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

that's is the format I have been using, though I believe I tracked the issue
down to a misplace , :/  so in the web interface I am, ahem, scripting, I set
the cookie then did the scope_dump() you gave me and http_request:{ ... cookie
is still cookie{} ...

new question: how would one do a logout from the interface ... tried setting
user.numer = 0; with no affect

2 wrongs don't make a right, but 3 left turns will get you back on the freeway!

---
� Synchronet � AlleyCat! BBS - http://alleycat.synchro.net:81