Posted on: 12/7/2015 8:59:37 PM | Views : 1317

I order to shore up our website security, I need to be able to track when a user requests a page within the application.  If the FormsAuthentication ticket is still valid, I want to update the database with the current DateTime value in record relating to this user.  However, after thinking for this a bit, I don't want to do this for every request since I run the risk of bringing the application to its knees.  I want to do it only for page requests, not images, CSS or JS files.
What application event handler (global.asax.cs) would be best to put this code?  I only need to do this for authenticated users.  I am thinking PostAuthenticateRequest might be a good place to do this, but again I also want to do it only for page requests.
Any tips?  Surely I can't be the only person to try this.
Thanks

Go to the complete details ...