Last post Aug 20, 2013 06:17 AM by Yener
Aug 20, 2013 06:01 AM|Yener|LINK
When I run my application, page opened as logged in :S then I Response.Write(User.identitiy.Name) to understand user who logged. it prints "Yener-Yener\Yener" :S I never create account like this but cant understand why this happened
Aug 20, 2013 06:03 AM|deshpande.suraj|LINK
Is it your system user?
Aug 20, 2013 06:07 AM|Yener|LINK
yes my windows user name I think. but how can it be logged automatically :S
Aug 20, 2013 06:07 AM|DMW|LINK
Are you running with Windows authentication switched on, and with any form of authorisation request being demanded?
If so, your browser is silently handling the authentication conversation that is required, authenticating you using your Windows credentials.
Aug 20, 2013 06:09 AM|ramu.net|LINK
It is writing Default System account as logged In user.
Get the login user information from the database then write response.
Aug 20, 2013 06:11 AM|deshpande.suraj|LINK
By default, you are logged in as your system user. Just ignore it for now. Create a new user and try logging in with new user credentials.
Aug 20, 2013 06:14 AM|ramu.net|LINK
Show or write user information after succesfully login only from database.
Then you didn't get this user name.
It is taking default user account information right now. To avoid this provide login form to the user.
After verifying user then write user name to page.
Aug 20, 2013 06:17 AM|Yener|LINK
Actually ı have fix this by copy web config from other project but still wonder why it happened I turn off pc restart again than it still logged with system user why ?
"your browser is silently handling the authentication conversation that is required, authenticating you using your Windows credentials." is it default in web config ?