View Single Post
  #1  
Old 08-14-2006, 01:39 PM
segio segio is offline
Junior Member
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
segio is on a distinguished road
Default how can i create a "users logged in now" script

Hi
I have a startup website, and i use php with a mysql backend to store information.

my question is, how can i create a "users logged in now" script? i want to have the "users logged in now" part of the site dynamic, instead of having to purge the user login cache (login information is stored as a 1 or 0 in user database)?

right now, when a user logs in, the login field on his database entry becomes 1, but if he doesnt log out by clicking "logout" (i.e. he closes the browser window) he remains "logged in." i only want to show people who are logged in (and clicking) at the time the page is loaded.
Thanks in advance -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - how can i create a "users logged in now" script
View Single Post
  #1  
Old 08-14-2006, 01:39 PM
segio segio is offline
Junior Member
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
segio is on a distinguished road
Default how can i create a "users logged in now" script

Hi
I have a startup website, and i use php with a mysql backend to store information.

my question is, how can i create a "users logged in now" script? i want to have the "users logged in now" part of the site dynamic, instead of having to purge the user login cache (login information is stored as a 1 or 0 in user database)?

right now, when a user logs in, the login field on his database entry becomes 1, but if he doesnt log out by clicking "logout" (i.e. he closes the browser window) he remains "logged in." i only want to show people who are logged in (and clicking) at the time the page is loaded.
Thanks in advance -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote