Environment versions
Network:
Windows 2000 Server
>Hello all, In my MVC app I would like to log ( in my database ) when the user opens the site and conversely closes it, I've managed to log when they open the site by putting code in the Application_Start() function but don't know where to put the log out code, I've tried the Application_End() but with erratic results ( i.e it sometimes fires ) where is the correct place to put the code ?
As Web applications can be disconnected easily without running close code I'd think about missed keep-alive pings (perhaps in addition to close code)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only