开发者

Tracking Urls User Has Visited During A Session

I have an app with alot of anchor tags in it开发者_如何学C. I wanna see what ones a user clicked on during a session. I thought aspnet automatically saved that information here:

string sessID =  System.Web.SessionState.SessionID;

But there is no such thing as SessionID in the SessionState namespace. Is this information saved automatically, if so how do I access it?

Here is my simple html

<body>
    <form id="form1" runat="server">
    <div>
    Page 2
    <a href="http://www.w3schools.com/">Visit W3Schools</a>
    <br />
    <a href="http://www.yahoo.com/">Yahoos</a>
    </div>
    </form>
</body>


Unless those anchors are not for client side manipulation only and they induce a round-trip to the server, the IIS log is the place to look for such information.

The following example shows an IIS log file entry, as viewed in a text editor:

192.168.114.201, -, 03/20/01, 7:55:20, W3SVC2, SERVER, 172.21.13.45, 4502, 163, 3223, 200, 0, GET, /DeptLogo.gif, -,

You will be able to get all requests your users make on the server, so you simply need to parse the log to get the info that you need. More info here

For other solutions see:

  • Creating an activity log
  • Tracking User Activity
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜