Jump to content

User logout :/


manix

Recommended Posts

it's done with a timestamp, that keeps updating whenever the user performs an action or changes pages... then you check the database for all timestamps older than (3 minutes? or whatever you want) and delete those from the onlineUsers list. I have explained this several times in detail here, and so have many others. try searching the forum.

Link to comment
Share on other sites

i normally do this with a database, when a user logs in, i set a field named something like "online" to a value of 1, when a user logs out, I set it to 0...to get a list of online users, display all of the rows where online = 1

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.