Tracking users (names) visiting site

Discussion in 'ASP.NET / ASP.NET Core' started by chriscanali, Jul 18, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I'm trying to recordsome kind ofusername from everyone who visits one of my sites without having them log in with a form. Well reading through some books I found out how to do it if the app was running my local machine but since it's on the asp.net server I can't get it to work. On my local I turned off Annonymous Access in the IIS/ISM properties and ran the app with the statement ...


    Response.Write(User.Identity.Name)


    That gave me the name I was looking for. Is there a way to do this through the ASP.Net control panel so that the app on the server will work the same? (As of now it won't write anything)Or is there a better way of doing this? Thanks very much.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    I suspect you want to record a different usename for every visit, even if this work, this would only give your the anonymous user which would not be very useful.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. It actually doesn't need to be differant for each visit, it's just a photo site for my friends to visit, so I was thinking I could firgure out who it was by there local machine name if that is what would come up for the user. SoI was gonna grab that name and the current time and stick it in a database.
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    you won't get that information, it'll tell you the local machine account that was used to run your web app.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. I see, ... so can you only use Integrated Windows Authentication if the app is running on your local server, your actualy computer, so you can get into the ISM and uncheck "Annonymous Access"?
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    yes. with remote web server, you will be using basic authentication or anonymous access

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page