Jump to content

Detect Connected Users via script?


This topic is 5691 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm considering a setup where I have one "robot" user who is logged in 24/7 in a looping script that does tasks such as sending emails for IWP data that's received.

I'd like to be able to track whether this robot user is in fact connected, so I don't forget to re-connect them after doing a database upgrade. I'd like my administrator account to notice that the robot account is not hooked up and notify me.

There doesn't seem to be a "getConnectedUsers" function, though.

Any other thoughts? Since the robot user will be in a loop, perhaps I could have it keep setting a one-record-table-field to the current timestamp. Then I could have my admin's user navigation script check that field to make sure the timestamp is not old, and warn me if it is.

Any other ideas?

Link to comment
Share on other sites

This topic is 5691 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.