Tracking users in ASP.NET 2.0
-
Hi all, I new to the web development side so please be patient. I want to track users as they progress through the site, selections they have made and settings they have changed. So I had a class with static variable keeping track of that, but the problem with that is when a second user accesses the site it overwrite all the values to what the second user has made, how can I keep that unique for each user? If you can just give me an indication of what I should use I will be able to find out how to use it. Thanks in advance
He who laughs last is a bit on the slow side
-
Hi all, I new to the web development side so please be patient. I want to track users as they progress through the site, selections they have made and settings they have changed. So I had a class with static variable keeping track of that, but the problem with that is when a second user accesses the site it overwrite all the values to what the second user has made, how can I keep that unique for each user? If you can just give me an indication of what I should use I will be able to find out how to use it. Thanks in advance
He who laughs last is a bit on the slow side
Use session variables for each user
Mark, http://aspnetlibrary.com
-
Use session variables for each user
Mark, http://aspnetlibrary.com
-
No probs. Quick example if you don't know how to use them: To add them:
Session.Add("username","bob")
To retrieve them:Label1.Text = Session.Item("username")
Mark, http://aspnetlibrary.com
-
No probs. Quick example if you don't know how to use them: To add them:
Session.Add("username","bob")
To retrieve them:Label1.Text = Session.Item("username")
Mark, http://aspnetlibrary.com