I am developing web base application; it contains more than 75 WebPages. Basically, in my application there are 20 users log in and access the pages. Now I would like to track or store information about user in the database i.e history of login time, logout time and total number of hit WebPages by users. Let us assume user1 logs in and accesses the page1 and page 2 five times then I will store in the database. User id , login time, page name and no of Hit for each and every page hit by particular user. Actually I have an idea like when page first time loads i.e post back property is false then I insert or update in the database. It works well. But there are 75 web pages and its complex task to write code on each and every page Actually I don’t write the same code on all pages. I got an idea this can be done in global. asax. I wrote code on this event in global.asax
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As
In this event I am not able to maintain user’s name Can I maintain User SessionID in
Application_BeginRequest in global. asax. Please let me know alternative way to handle this problem.
Any Help is appreciated .