|
|
|
|
![]() ![]() |
Mar 23 2007, 04:45 PM
Post
#1
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 53 Joined: 23-February 07 Member No.: 39,103 |
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. =] This post has been edited by JDameron91: Mar 23 2007, 04:46 PM |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 25th July 2008 - 10:20 AM |