Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 22nd, 2006, 01:12 AM
Authorized User
 
Join Date: Dec 2005
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g_vamsi_krish
Default getting number of users logged into the site

Hai
  can any one tell me how to get the count for the number of users presently logged in to the site...
  Is there any object which ill return the number of sessions created for the user....
 thanks in advance.

have a nice day.


vamsi
__________________
vamsi Krishna G
mobile: 91 + 9986023966.
124 Puttappa layout new Tippasandhra,
bangalore.
Inida
 
Old May 22nd, 2006, 05:46 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default

Hi,

You can achieve this by declaring an application level coutn variable and incrment it on every Session On Start Event in Global.asax

Anubhav Kumar
 
Old May 22nd, 2006, 10:49 AM
Authorized User
 
Join Date: Dec 2005
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g_vamsi_krish
Default

thanks for the reply. I to think the same.

vamsi
 
Old May 22nd, 2006, 10:52 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi vamsi,

Take a look at this article: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=238

It explains how to create a hit counter using C# and a database. There's also a VB.NET version of the article available.

Hope this helps,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old May 22nd, 2006, 11:46 PM
Authorized User
 
Join Date: Dec 2005
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g_vamsi_krish
Default

i created an application contantto keep track of user logins and logouts.

vamsi
 
Old May 26th, 2006, 05:33 AM
Authorized User
 
Join Date: May 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank,
It has helped me also.

rajkumar sharma
 
Old May 26th, 2006, 09:33 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Thanks Imar. Much appreciated.







Similar Threads
Thread Thread Starter Forum Replies Last Post
re number of logged in users. malhyp Dreamweaver (all versions) 1 February 4th, 2006 10:36 AM
Determine logged on users markw707 Access 1 January 21st, 2005 01:59 AM
Redirecting logged on Users fletched PHP How-To 1 March 25th, 2004 06:42 PM
Redirecting logged in users zicaden Beginning PHP 3 September 6th, 2003 02:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.