|
|
|
|
|
| | |
|
Active Server Pages ASP programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Session Questions |
From: |
Anonymous |
Date: |
9/16/1999 5:26:27 PM |
IP: |
205.138.187.105 |
I am setting up my site to tell me the active the session on my website. I am using the following code:
Sub Application_OnStart
Application("intUserCount") = 0
End Sub
Sub Session_OnStart
Application.lock
Application("intUserCount") = Application("intUserCount") + 1
Application.unlock
End Sub
Sub Session_OnEnd
Application.lock
Application("intUserCount") = Application("intUserCount") - 1
if Application("intUserCount") < 0 then
Application("intUserCount") = 0
end if
Application.unlock
End Sub
Is this sufficient? Any glaring problems with it?
Also, Is there a way to read the total number of sessions with a particular value?
Example: If I assign session("currBrowser") = xxx in each persons session, can I access the total number of people with session("currBrowser") values of "IE"?
Thanks for any information! |
|
|
|
|
|
|
|
|
|
|
|
|