Hey all,
Newbie question I'm afraid: Is there a way to see/tell how many users are
currently logged into a website at all?
Thanks
Brendon 8 17238
It depends upon what you mean by logged in. If you mean casual users who are
just visiting your site, then you'll need some tool to analyze your log
files to see that information. If you're using something like the ASP.Net
Membership system, then the
System.Web.Security.Membership.GetNumberOfUsersOnl ine() function will show
the number logged int.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"Brendon Bezuidenhout" <ab****@bezfamily.netwrote in message
news:e9****************@TK2MSFTNGP03.phx.gbl...
Hey all,
Newbie question I'm afraid: Is there a way to see/tell how many users are
currently logged into a website at all?
Thanks
Brendon
Hi,
Brendon Bezuidenhout wrote:
Newbie question I'm afraid: Is there a way to see/tell how many users are
currently logged into a website at all?
you could use the Session_Start and Session_End functions (Global.asax) to
track who logged on and off. However, since sessions may remain for
whatever duration has been specified (unless users explicitly log off), the
expressiveness of the so calculated figure will be doubtful at best.
Cheers,
Olaf
--
My .02: www.Resources.IntuiDev.com
Heya Olaf,
Ermmmmmmm *blank look* - I'm a newbie to ASP.net moving form Win Forms to
Web Forms lol.... Thanks for the pointers re: Global.aspx... Where/How do I
set the sessions timeout as such?
Brendon
"Olaf Rabbachin" <Ol*********@IntuiDev.comwrote in message
news:uq**************@TK2MSFTNGP02.phx.gbl...
Hi,
Brendon Bezuidenhout wrote:
>Newbie question I'm afraid: Is there a way to see/tell how many users are currently logged into a website at all?
you could use the Session_Start and Session_End functions (Global.asax) to
track who logged on and off. However, since sessions may remain for
whatever duration has been specified (unless users explicitly log off),
the
expressiveness of the so calculated figure will be doubtful at best.
Cheers,
Olaf
--
My .02: www.Resources.IntuiDev.com
There's a nice writeup here, that talks about three seperate methods to
go about doing this: http://classicasp.aspfaq.com/general.../sessions.html
In response to your last question, I believe you can set the timeout
within your global.asax file. Within the sessionState tag, add an
attribute such as:
timeout="60"
The 60 means that the session would timeout after 60 minutes. I haven't
done much with session states, so there could be another method to go
about doing this.
On Nov 16, 5:28 am, "Brendon Bezuidenhout" <abs...@bezfamily.net>
wrote:
Heya Olaf,
Ermmmmmmm *blank look* - I'm a newbie to ASP.net moving form Win Forms to
Web Forms lol.... Thanks for the pointers re: Global.aspx... Where/How do I
set the sessions timeout as such?
Brendon
"Olaf Rabbachin" <Olaf_NoS...@IntuiDev.comwrote in messagenews:uq**************@TK2MSFTNGP02.phx.gbl. ..
Hi,
Brendon Bezuidenhout wrote:
Newbie question I'm afraid: Is there a way to see/tell how many users are
currently logged into a website at all?
you could use the Session_Start and Session_End functions (Global.asax) to
track who logged on and off. However, since sessions may remain for
whatever duration has been specified (unless users explicitly log off),
the
expressiveness of the so calculated figure will be doubtful at best.
Cheers,
Olaf
--
My .02:www.Resources.IntuiDev.com
Oops! That tag/attribute should belong in web.config... not
global.asax.
On Nov 16, 9:25 am, "jos...@gmail.com" <jos...@gmail.comwrote:
There's a nice writeup here, that talks about three seperate methods to
go about doing this:
http://classicasp.aspfaq.com/general...-number-of-cur...
In response to your last question, I believe you can set the timeout
within your global.asax file. Within the sessionState tag, add an
attribute such as:
timeout="60"
The 60 means that the session would timeout after 60 minutes. I haven't
done much with session states, so there could be another method to go
about doing this.
On Nov 16, 5:28 am, "Brendon Bezuidenhout" <abs...@bezfamily.net>
wrote:
Heya Olaf,
Ermmmmmmm *blank look* - I'm a newbie to ASP.net moving form Win Forms to
Web Forms lol.... Thanks for the pointers re: Global.aspx... Where/How do I
set the sessions timeout as such?
Brendon
"Olaf Rabbachin" <Olaf_NoS...@IntuiDev.comwrote in messagenews:uq**************@TK2MSFTNGP02.phx.gbl. ..
Hi,
Brendon Bezuidenhout wrote:
>Newbie question I'm afraid: Is there a way to see/tell how many users are
>currently logged into a website at all?
you could use the Session_Start and Session_End functions (Global.asax) to
track who logged on and off. However, since sessions may remain for
whatever duration has been specified (unless users explicitly log off),
the
expressiveness of the so calculated figure will be doubtful at best.
Cheers,
Olaf
--
My .02:www.Resources.IntuiDev.com
Thanks a million for that Josh - Makes things a little clearer for me :)
Not as convoluted as the security framework I have to deal with at work
thankfully lol
<jo****@gmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
There's a nice writeup here, that talks about three seperate methods to
go about doing this:
http://classicasp.aspfaq.com/general.../sessions.html
In response to your last question, I believe you can set the timeout
within your global.asax file. Within the sessionState tag, add an
attribute such as:
timeout="60"
The 60 means that the session would timeout after 60 minutes. I haven't
done much with session states, so there could be another method to go
about doing this.
On Nov 16, 5:28 am, "Brendon Bezuidenhout" <abs...@bezfamily.net>
wrote:
>Heya Olaf,
Ermmmmmmm *blank look* - I'm a newbie to ASP.net moving form Win Forms to Web Forms lol.... Thanks for the pointers re: Global.aspx... Where/How do I set the sessions timeout as such?
Brendon
"Olaf Rabbachin" <Olaf_NoS...@IntuiDev.comwrote in messagenews:uq**************@TK2MSFTNGP02.phx.gbl ...
Hi,
Brendon Bezuidenhout wrote:
>Newbie question I'm afraid: Is there a way to see/tell how many users are currently logged into a website at all?
you could use the Session_Start and Session_End functions (Global.asax)
to
track who logged on and off. However, since sessions may remain for
whatever duration has been specified (unless users explicitly log off),
the
expressiveness of the so calculated figure will be doubtful at best.
Cheers,
Olaf
--
My .02:www.Resources.IntuiDev.com
Hi, jo****@gmail.com wrote:
There's a nice writeup here, that talks about three seperate methods to
go about doing this:
http://classicasp.aspfaq.com/general.../sessions.html
great link - thanks!
In response to your last question, I believe you can set the timeout
within your global.asax file. Within the sessionState tag, add an
attribute such as:
timeout="60"
The 60 means that the session would timeout after 60 minutes.
I.e.:
....
<system.web>
...
<sessionState mode="InProc" timeout="20"/>
...
</system.web>
I haven't done much with session states, so there could be another method
to go about doing this.
You could also set this within your website's IIS-settings (see the State
Managment strip). And I guess (!) you might do so in the machine.config
file, but I never tried that.
Cheers,
Olaf
--
My .02: www.Resources.IntuiDev.com
Hi,
Olaf Rabbachin wrote:
>There's a nice writeup here, that talks about three seperate methods to go about doing this:
http://classicasp.aspfaq.com/general.../sessions.html
also, there's another more or less built-in method of counting users. If
you use the membership-provider, check out the GetNumberOfUsersOnline-prop,
i.e.:
lblUserInfo.Text = Membership.GetNumberOfUsersOnline().ToString;
Cheers,
Olaf
--
My .02: www.Resources.IntuiDev.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Rudolf Bargholz |
last post by:
Hi,
DB2 v7.1 FP3 on Windows 2003
I am trying to acheive the following:
create trigger ADD_LHL
after insert on MAINTABLE
for each row mode db2sql
insert into LOGTABLE
|
by: Joe Saliba |
last post by:
hi, hope somebody could help me with this, have some users created on an
sql 2000, and am trying to know which user opened the adp , so everytime
i put msgobx currentuser it gives me admin, though...
|
by: Jamie |
last post by:
I'm trying to create a HttpWebRequest object that uses the current logged in
users credentials. The site is using Windows Authentication, Anonymous
access is turned off.
Will the HttpWebRequest...
|
by: Kristof Despiere |
last post by:
Suppose you have one domain, filled with a couple of users. What needs to be
done now is I need to start a windows application from a webform by pressing
a button on the webform (for example).
...
|
by: John Dalberg |
last post by:
I want to automate the process of logging into an intranet. I want to pull
out the username of the Windows user logged into the machine running the
browser and use the username in my app. How can I...
|
by: Electrified Research |
last post by:
So I've been playing with WebParts. Very cool stuff. The
personalization scope has "Shared" and "User". "Shared" allows for an
admin to customize a page and how other users see that page. ...
|
by: Lattis |
last post by:
I have the following problem:
User A is logged in to a windows 2000 terminal. He runs an application which
runs under the credentials of a different user. If I try to see the current
user...
|
by: Les Desser |
last post by:
I know that the .ldb file should show the users currently logged into a
database.
However, when a user logs out I cannot detect any change in the file.
I must be missing something as PSPad...
|
by: thephatp |
last post by:
Is there any possible way to get the currently logged in (active) user from within a service?
I need the service to start at runtime. I need to capture log on / log off / switch user events. I...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |