Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Logging user in and out
Message
Information générale
Forum:
ASP.NET
Catégorie:
MVC
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01597445
Message ID:
01597454
Vues:
36
>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......
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform