views:

159

answers:

1

I am building an intranet application, the requirement is to log in user without asking for credentials with the windows credentials he has logged on to computer, user if wants can logout from application and log in using the windows credentials pop up.

+2  A: 

Use Windows Authentication.

Though, I don't think there's really a way to sign out of a website using Windows authentication. You're either authenticated or you aren't.

Also, I believe the automatic logging in will only occur:

  • When using IE
  • After saving credentials after logging in the first time in other browsers
  • After editing browser-specific settings (like FireFox's NTLM setting)
Daniel Schaffer