|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Hi all,
I want to know how many active sessions i have in a site with ASP (not .net), is it possible? i mean to show how many people are online now? i know with php it could be done, but with asp.....i dont know.....please help... Thanks |
|
#2
|
|||
|
|||
|
use a db??
when someone comes in.. add the count.. when someone leaves.. deduct the count.. this is the simplest method that i can think of.. |
|
#3
|
||||
|
||||
|
Thanks, but when user logs in and logs out that works good, but when they just close the ie or go to other sites, this does not work........any other solutions?
|
|
#4
|
|||
|
|||
|
use jscript:
<body onUnload="window.open("logout.asp")"> this will have a "Forced" logout.. |
|
#5
|
|||
|
|||
|
Quote:
...i won't prefer... every click to another page (also on the same host) will execute the logout.asp-script... and if i close the browser, the script won't be executed... you have to do some entries in the global.asa there are some keywords like on_session_start on_session_end that's the most efficent method... here's the link tomsn |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Count Sessions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|