Subj : Re: Dump Globals
To   : echicken
From : Mortifis
Date : Sat Feb 16 2019 08:08 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.

I had been using runemaster logout.ssjs and fiddling with it because it didn't
actually logout, even if you close the browser and reopen it you're still
logged in; unless you clear the cache and cookies etc ...

> Are you creating a web interface from scratch, or is this a mod of something
> that already exists?

half of both ... I migrated a php theme I wrote for my transport management
suite and am modifying it for js, ssjs, xjs and in an attempt to change the
current login.ssjs and logout.ssjs I am running into the issues you mention,
especially since the theme navigation remains and content is in a centre, ahem,
<iframe>  some, if not most, of the content is ripped and modified from
web/root web/templates/nightshade

I'll just leave it with the baked in stock login.ssjs and forget logouts :-�




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