CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Session Values

Print topic Send  topic

Author Message
DataDoIt
Posted: 03/31/2004, 9:56 AM

CCS2; PHP; MySQL

Is there a magical way to build an admin screen that will show me all users
who are currently logged in, if CCS is setting UserLogin as a session value?

-Mike R.

srinivas

Posts: 54
Posted: 04/04/2004, 1:21 PM

Here is one way:

- You can store the session information into your database when a user logs in
- For every page request check if the same session exists and if so update the timestamp
- Have a scheduled job clearning up the sessions that are TOO old

Now all you have to do is to display the session information (total number of users, user name(s) etc.) in a page from the dabase.

Hope this helps.

-Srinivas
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.