Re: [php-list] Current user Sessions

2006-05-21 Thread Mike Brandonisio
Hi, You will want to use a separate table not the user table since this  will be scratch data. If you want to display split values for users  and guests assign everyone an ID from the new table and place that in  a cookie var. By using a cookie you can see if a visitor has been to  the site

Re: [php-list] Current user Sessions

2006-05-20 Thread riquez
>  On May 20, 2006, at 6:31 PM, [EMAIL PROTECTED] wrote: > > > I'd like to add a "who's online" section to my home made forum. > > When a user logs-in they are given a session $_SESSION['user'] > > (containing their username) for the duration of their stay. > > > > How can I use PHP to list all

Re: [php-list] Current user Sessions

2006-05-20 Thread Mike Brandonisio
Hi, You'll have to write your data to a table since other users will have  query the table to count how many entries are live. You'll also have  to figure out how to deal with people who leave the site. Sincerely, Mike -- Mike Brandonisio  *    Web Hosting Tech One Illustration

[php-list] Current user Sessions

2006-05-20 Thread riquez
Hi, I'd like to add a "who's online" section to my home made forum. When a user logs-in they are given a session $_SESSION['user']  (containing their username) for the duration of their stay. How can I use PHP to list all of the currently active 'user' sessions  that the system has created?