Users Online

05-20-2002, 05:34 AM
Does anyone have som good script for showing "online users" on a webserver?

/ Peter

Derek Stone
05-20-2002, 02:03 PM
You can do this very easily by using the Global.asp file. In the Session_OnStart event add the user to an application-wide variable and in the Session_OnEnd event remove the user from the variable. Then, all you have to do is loop through the variable and use Response.Write to print the names of users online to any of your pages.

Good Luck

05-20-2002, 06:26 PM
Yes, i have tried that. But when a user get timeout.. it doesnt remove the user from the list (i use a database)

Any suggestion or code-snippets?

// Peter

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum