Jump to content
xisto Community
Sign in to follow this  
JDameron91

Help With Ajax I cant figure it out...

Recommended Posts

Hello, I have recentlty ran into a problem on my website: When a user logs in, it adds him to an active users list in the MySQL database, but if they don't click the "logout" button, and just leave the site, it keeps them in the active users list forever until I manually go into the database and take them out. I heard from a friend that you could use AJAX to find out if the user is active, if he's not and he stays inactive for a certain amount of time, then it will take him out of the active users list. So I go to learn AJAX because all of the other languages I know are easy, this was not so with AJAX; I can't even make a working request to the database!

So what I need is a way for the user that exits the site without clicking the "logout" button to be deleted from the active users list. I would be very happy if you gave me a code, tutorial or even refer me to a helpful site about AJAX.
All and any help is greatly appreciated. =]

Edited by JDameron91 (see edit history)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.