Tuesday, 15 June 2010

asp.net - How to force log off for User.Identity.Name -



asp.net - How to force log off for User.Identity.Name -

my application retrieving wrong identity. it's taking os name rather web application user name. i've tried set new identity next code, still grabs os business relationship name.

if user.identity.name = "domain\name" formsauthentication.signout() httpcontext.current.user = new genericprincipal(new genericidentity(string.empty), nothing) end if

i forcefully log off user.identity.name because every time boot, name wrong. can build web application default name null, until login through application?

i've tried reboot desktop, name still taken os identity. how can create stop!!!

note: way user name set, got pop prompted me user name , password os account, website shouldn't that. os verification. need detached.

<authentication mode="forms"> <forms loginurl="login.aspx" defaulturl="welcome.aspx" cookieless="usecookies" slidingexpiration="true" timeout="20" name=".auth" protection="all"> </forms> </authentication>

do have windows authentication disabled in iis?

asp.net asp.net-membership identity membership-provider membership

No comments:

Post a Comment