Click here to Skip to main content
15,923,557 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Display a confirm message before a frame is redirected. Pin
chubbysilk22-Oct-03 4:59
chubbysilk22-Oct-03 4:59 
GeneralRe: Display a confirm message before a frame is redirected. Pin
theJazzyBrain22-Oct-03 21:08
theJazzyBrain22-Oct-03 21:08 
GeneralRe: Display a confirm message before a frame is redirected. Pin
Edbert P22-Oct-03 21:17
Edbert P22-Oct-03 21:17 
GeneralRe: Display a confirm message before a frame is redirected. Pin
Matt Kerry28-Oct-03 23:11
Matt Kerry28-Oct-03 23:11 
GeneralCleaning up sessions Pin
Megan Forbes21-Oct-03 6:05
Megan Forbes21-Oct-03 6:05 
GeneralRe: Cleaning up sessions Pin
Heath Stewart21-Oct-03 7:02
protectorHeath Stewart21-Oct-03 7:02 
GeneralRe: Cleaning up sessions Pin
Dauger21-Oct-03 10:35
Dauger21-Oct-03 10:35 
GeneralRe: Cleaning up sessions Pin
Sage21-Oct-03 12:38
Sage21-Oct-03 12:38 
I had to deal with a similair issue yesterday and here is what I did..


Situation, Users log in and we adjust their profile to show them as "Logged In", which allows us to produce an accurate list of "Current Users". Whne a users logs off (using the "defined" method, which is a button), then we update their profile to show them as "Logged off". When user logs in when user logs off, we capture the time of these two events and we produce a report of "Time Using System".


Well, as you are now seeing, users dont always use your "buttons". So what I did was add a Log-Off catch in the Session_OnEnd section of the global.asa like so:

Sub Session_OnEnd
' Decrement the current number of active users
Application.Lock
Application("CurrentUsers")=Application("CurrentUsers")-1
Application.Unlock

' Close the current users open session and adjust DB
set conn = server.createObject("adodb.connection")
conn.open("Server=SQLServer.petcarefinder.com;Driver={SQL Server};Database=Users_DB;UID=Username;pwd=Password;")
conn.execute("dbo.con_LogUserOutOfSystem('" & Session("UID") & "')")
conn.close :: set conn = nothing

End Sub


This only "Logs Off" the current session, it doesnt wipe out all sessions on the server. I have tested this relentlessly in the last 2 days and it seems to never <u>not</u> work.

let me know if this would help you ....

- Sage
GeneralRe: Cleaning up sessions Pin
Paul Watson21-Oct-03 22:14
sitebuilderPaul Watson21-Oct-03 22:14 
GeneralRe: Cleaning up sessions - Further Questions Pin
Megan Forbes21-Oct-03 22:38
Megan Forbes21-Oct-03 22:38 
GeneralRe: Cleaning up sessions - Further Questions Pin
Sage22-Oct-03 2:12
Sage22-Oct-03 2:12 
GeneralDynamic CSS linking via Javascript Pin
shem721-Oct-03 2:44
shem721-Oct-03 2:44 
GeneralRe: Dynamic CSS linking via Javascript Pin
Heath Stewart21-Oct-03 7:09
protectorHeath Stewart21-Oct-03 7:09 
GeneralRe: Dynamic CSS linking via Javascript Pin
shem722-Oct-03 0:54
shem722-Oct-03 0:54 
GeneralRe: Dynamic CSS linking via Javascript Pin
Heath Stewart22-Oct-03 3:13
protectorHeath Stewart22-Oct-03 3:13 
GeneralAccessing an hyperlink associated with a cell in excel sheet in asp environment Pin
kavi_kanth20-Oct-03 22:46
kavi_kanth20-Oct-03 22:46 
GeneralCSS question. Pin
theJazzyBrain19-Oct-03 23:13
theJazzyBrain19-Oct-03 23:13 
GeneralRe: CSS question. Pin
ZoogieZork20-Oct-03 6:02
ZoogieZork20-Oct-03 6:02 
GeneralRe: CSS question. Pin
theJazzyBrain20-Oct-03 8:05
theJazzyBrain20-Oct-03 8:05 
GeneralRe: CSS question. Pin
Rocky Moore25-Oct-03 5:11
Rocky Moore25-Oct-03 5:11 
GeneralRestriced acces to web service method Pin
sybux200018-Oct-03 21:57
sybux200018-Oct-03 21:57 
GeneralJScript/PHP eval() Pin
alex.barylski18-Oct-03 18:21
alex.barylski18-Oct-03 18:21 
GeneralLooking for help Pin
webmusic17-Oct-03 16:52
webmusic17-Oct-03 16:52 
Generalto get GMT time with respect to locale Pin
mukeshr16-Oct-03 2:57
mukeshr16-Oct-03 2:57 
GeneralRe: to get GMT time with respect to locale Pin
mukeshr16-Oct-03 20:33
mukeshr16-Oct-03 20:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.