Forum Index Search Forum Register Log in

Runs on XP to Win 10

Current

Download 7.0

Download 7.1 Beta5 upgrade



A donation makes a contribution towards the time and effort that's going in to running this site.

Steffen

Contact:
My mail address is
at the top of the paypal form :

Your donations will help to keep this site alive and well.


Update your links !! November 2016 the forum is at www.apachelounge.com/sambar

In the forum there are links to sambarserver.info,
replace "sambarserver.info" with "apachelounge.com/sambar"
User login timeout

 
Post new topic   Reply to topic    Sambar Forum Index -> Lounge
View previous topic :: View next topic  
Author Message
PaulnOZ



Joined: 12 Oct 2010
Posts: 16
Location: Brisbane, Australia

PostPosted: Tue 12 Oct '10 12:11    Post subject: User login timeout Reply with quote

Sorry, but I'm still using version 4 (will upgrade one day)

But I'm wondering if there's any way to see if a user is logged in or not without having to be logged in as admin.

IE: RCEnumusers tells me how many logged in users there are, but there doesn't seem to be a list of logged in usernames, I can't see WHO is logged in.

I currently use a separate database to do this for me which works fine when they login or logout but if they timeout, I have no idea how to update my database that they're gone.

Does the timeout fire an event I could catch or I'm I going to have to run my own separate cron event to keep checking their status, and if so how can I check a users status?

If version 7 has all these issues sorted cool I'll upgrade, however, from what I've read I'm not so sure.

Anyways many thanks, it's always great to catchup with old friends, haven't posted here for years, thanks Steffen for keeping it up.

Paul Romer
Brisbane, Australia
Back to top
View user's profile
PaulnOZ



Joined: 12 Oct 2010
Posts: 16
Location: Brisbane, Australia

PostPosted: Fri 15 Oct '10 8:00    Post subject: Doh Reply with quote

It just dawned on me to use state variables. I can't believe it took me this long to figure out something so simple. Oh well, better late than never.

Incase anyone is wondering, state variables <RCS>, as apposed to normal or template variables <RC$>, stay set only while the user is logged in. Simply test a set state variable for NULL, if yes then they're logged out.

Anyways,

Hello..............Hello..............Hello....................echo!

empty room?

Paul
Back to top
View user's profile
PaulnOZ



Joined: 12 Oct 2010
Posts: 16
Location: Brisbane, Australia

PostPosted: Tue 19 Oct '10 11:52    Post subject: Reply with quote

This solution doesn't work of course, because there's no way to test anybody else's state variables.

Oh well, back to the drawing board.

Now looking at version 7 docs & sql login
Back to top
View user's profile
PaulnOZ



Joined: 12 Oct 2010
Posts: 16
Location: Brisbane, Australia

PostPosted: Fri 03 Jun '11 10:46    Post subject: Reply with quote

I believe what I'm looking for can be found in the "Security Overview" section of the server documentation.

Just answering my own question for future readers.
Back to top
View user's profile

Post new topic   Reply to topic    Sambar Forum Index -> Lounge
Page 1 of 1