Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Tracking users in ASP.NET 2.0

Tracking users in ASP.NET 2.0

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-nethelptutorial
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JacquesDP
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • J JacquesDP

      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

      C Offline
      C Offline
      ca8msm
      wrote on last edited by
      #2

      Use session variables for each user

      Mark, http://aspnetlibrary.com

      J 1 Reply Last reply
      0
      • C ca8msm

        Use session variables for each user

        Mark, http://aspnetlibrary.com

        J Offline
        J Offline
        JacquesDP
        wrote on last edited by
        #3

        thanks

        He who laughs last is a bit on the slow side

        C 1 Reply Last reply
        0
        • J JacquesDP

          thanks

          He who laughs last is a bit on the slow side

          C Offline
          C Offline
          ca8msm
          wrote on last edited by
          #4

          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

          J 1 Reply Last reply
          0
          • C ca8msm

            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

            J Offline
            J Offline
            JacquesDP
            wrote on last edited by
            #5

            Thanks, got a hopefully good article from here[^]

            He who laughs last is a bit on the slow side

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups