Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Logging user in and out
Message
General information
Forum:
ASP.NET
Category:
MVC
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01597445
Message ID:
01597454
Views:
35
>Hello all, when I say login in I mean opens the site in a browser, users aren't required to login via a dialog box, and the same goes for logging out I mean when they close the site - or is this all different in Web world ?

Then Session_OnStart() will get you the first time. But you can't get an accurate time for when they close their browser - the server has no way of knowing when that happens - as before Session_OnEnd() will fire when the session times out but that could be some time after they have actually closed the browser.

You could try code on the client side to watch for the window.onbeforeunload() event and signal the server from there - but I've never tried it......
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform