Results 1 to 4 of 4

Thread: ASP Net this.user.identity.name

  1. #1
    Join Date
    Nov 2008
    Posts
    94

    ASP Net this.user.identity.name

    I have a Win XP Service Pack 2 server with .NET 1.1 in web.config file of my project, authentication is Windows, I am trying to use User.Identity.Name, i am getting the user name in this field even after i logout (i.e, FormaAuthentication.SighnOut(), and also i am trying to use User.Identity.IsAuthenticated for checking whether the User has logged in or not.

  2. #2
    Join Date
    Dec 2008
    Posts
    202

    Re: ASP Net this.user.identity.name

    Everytime I logged in the Context.User.Identity.Name='Local/Administrator' which i dont expect the HttpContext.Current.User will not pupulated until you call :

    FormsAuthentication.SetAuthCookie(UserName, False)

    or

    FormsAuthentication.RedirectFromLoginPage(UserName, False)

  3. #3
    Join Date
    Dec 2008
    Posts
    128

    Re: ASP Net this.user.identity.name

    Windows Identity object in his asp.net web application. He further claimed that he had set "authentication mode" to "windows authentication". a page called login.aspx then after verify & to make user OK you need code like follow:

    FormsAuthentication.SetAuthCookie(UserID, false);
    Session.Timeout = 30;
    Response.Redirect(Request.QueryString.Get("ReturnUrl"));

  4. #4
    Join Date
    Nov 2008
    Posts
    94

    Re: ASP Net this.user.identity.name

    I am setting up an Intranet web site. I want to add the windows login name for those people who update records, I also have a problem that involves windows authentication. I created a website that uses User.Identity.Name to get the current user and then I use this to make a LDAP query so I can get some more info on the user.

Similar Threads

  1. Transferring Identity safe Logins To Windows User Profile
    By Punker in forum Networking & Security
    Replies: 4
    Last Post: 27-12-2010, 02:55 AM
  2. Ping Identity software
    By Aidan 12 in forum Windows Software
    Replies: 3
    Last Post: 31-10-2009, 02:41 PM
  3. Problem with USER.Identity.name in ASP.net
    By Jesse Bas in forum Software Development
    Replies: 3
    Last Post: 16-07-2009, 10:22 PM
  4. Can I control my image and my identity on the net?
    By Gangesh in forum Technology & Internet
    Replies: 2
    Last Post: 12-01-2009, 10:10 AM
  5. Replies: 0
    Last Post: 07-01-2009, 09:18 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,126,310.75395 seconds with 17 queries