|
Hi,
I am developing web based application in asp.net.Actually I need the best solution or any idea of my problem.
I maintain user login time; log out time and how many times WebPages hit by particular user. Let us assume user hits result.aspx page 20 times, so I have to store 20 in the database. There are several pages in my application.Is there any function or method available to track the events when user hit any webpage.
I have done like this for each page when post back property is false then I update or insert in the database. But .each time I hit the database when page first time loads which effects on performance.. If any body have some idea or developed such type of application. Please help me.
Regards,
rajesh
|
|
|
Why don't you use a session variable. You could also use a cookie but it would be more problematic.
Also, updating a database just for a single count is not that resource intensive. If you notice a degrade in performance than you probably have other things slowing it down.
|
|
|
|
|
|
|
// |