This is a discussion on "users logged in script" within the PHP Forum section. This forum, and the thread "users logged in script are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
users logged in script
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
users logged in script
hello,
i have a startup a 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. thnx |
|
|
|
|||
|
how do i check if user is logged on or not?
i would like to echo different links on each page depending on if the user is logged on or not,
e.g "log on" or "register" if they are not and "change style" if they are, how do i do this? thanks |
|
|||
|
Re: users logged in script
sessions...
i think |
|
|||
|
Re: users logged in script
question :.... do sessions expire naturally?..... if so, how long does this take, and if not what are the consequences of not killing them properly?
|
![]() |
| Tags |
| logged, script, users |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Best script to create users for password protected pages? | vandiermen | PHP Forum | 3 | Apr 23rd, 2007 12:22 |
| online image and offline image showing when logged in and logged out | Aaron1988 | PHP Forum | 4 | Apr 5th, 2007 17:24 |
| When logged in options | Aaron1988 | Webforumz Cafe | 36 | Nov 27th, 2006 15:45 |
| users online, users loggedin | benbacardi | PHP Forum | 3 | Jul 5th, 2005 22:14 |