Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 29-07-2009
Member
 
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.
Reply With Quote
  #2  
Old 29-07-2009
Member
 
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)
Reply With Quote
  #3  
Old 29-07-2009
Member
 
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:

Quote:
FormsAuthentication.SetAuthCookie(UserID, false);
Session.Timeout = 30;
Response.Redirect(Request.QueryString.Get("ReturnUrl"));
Reply With Quote
  #4  
Old 29-07-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "ASP Net this.user.identity.name"
Thread Thread Starter Forum Replies Last Post
Transferring Identity safe Logins To Windows User Profile Punker Networking & Security 4 27-12-2010 02:55 AM
Ping Identity software Aidan 12 Windows Software 3 31-10-2009 02:41 PM
Problem with USER.Identity.name in ASP.net Jesse Bas Software Development 3 16-07-2009 10:22 PM
Can I control my image and my identity on the net? Gangesh Technology & Internet 2 12-01-2009 10:10 AM
Transfer user settings to another user - Duplicate user's account (Windows Vista) TheGreatOne Tips & Tweaks 0 07-01-2009 09:18 PM


All times are GMT +5.5. The time now is 01:54 PM.