Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

number of logged in users?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

number of logged in users?

Postby p3x » Tue May 13, 2003 2:41 am

Hello,

My webpage has a log in system, now I want to know how to make a script where you can view the number of logged in users (count sessions or something??) and where you can see if a user is logged in. e.g.

User: P3x (logged in, currently visiting bla bla)

Any ideas on how to accomplish this would be appreciated.

P3x
p3x
New php-forum User
New php-forum User
 
Posts: 17
Joined: Mon Mar 03, 2003 10:53 am

Postby Oleg Butuzov » Tue May 13, 2003 5:31 am

you can do this cookies
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

hm

Postby p3x » Wed May 14, 2003 2:55 am

and without cookies... any ideas? :)
p3x
New php-forum User
New php-forum User
 
Posts: 17
Joined: Mon Mar 03, 2003 10:53 am

Postby Oleg Butuzov » Wed May 14, 2003 4:54 am

with database
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

User logins

Postby ruturajv » Thu May 15, 2003 6:13 am

You can use global variables if you want, create an array of users and display

Hope that works
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby Oleg Butuzov » Thu May 15, 2003 6:26 am

problem isnt = how to display vars
problem is - where store vars and how analize.
best (IMHO) way use Sesions and MySQL (or onother DB)
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am


Return to PHP coding => General

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron