Subj : Re: Dump Globals
To : Mortifis
From : echicken
Date : Sat Feb 16 2019 05:53 pm
Re: Re: Dump Globals
By: Mortifis to echicken on Sat Feb 16 2019 15:33:53
Mo> new question: how would one do a logout from the interface ... tried
Mo> setting user.numer = 0; with no affect
How are you logging the user in in the first place?
I believe the Runemaster web UI uses HTTP authentication that's baked into the
web server. The user is already logged in before the script begins to execute,
and I don't think there's a proper way to log them out after that. With most
browsers, the only way to log out of this type of session is to close the
browser. Clearing the cache may work. I see a logout.ssjs that attempts to do
just this, but if it does it wouldn't take effect until the next request comes
in from that client.
My web UI does things a bit differently and does have a way of destroying a
session, but that's a whole other story. It's also something I'm planning on
revising in the near term.
Are you creating a web interface from scratch, or is this a mod of something
that already exists?