.NET Framework - Logout with windows authentication
Asked By Uwe Braunholz
04-Dec-07 02:34 AM
Hello,
I was trying to reproduce sharepoints "Sign on as another user"
feature using windows authentication in asp.net 2.0. But this did not
work for me.
The browsers seems to keep the information of the first sign in. the
only solution is to completely close the browser.
How could I force a reauthentication of the client, to get onto
another users-account.
I really hope someone can help me with that!
Thank you!
Regards,
Uwe Braunholz
Logout
(1)
Michelangelo
(1)
Sharepoints
(1)
Laflour
(1)
Windows
(1)
Rity
(1)
WBR
(1)
Michael Nemtsev [MVP] replied...
Hello Uwe,
Did u try to clear and close session + clear cache?
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
miss it, but that it is too low and we reach it" (c) Michelangelo
UB> Hello,
UB>
UB> I was trying to reproduce sharepoints "Sign on as another user"
UB> feature using windows authentication in asp.net 2.0. But this did
UB> not
UB> work for me.
UB> The browsers seems to keep the information of the first sign in. the
UB> only solution is to completely close the browser.
UB> How could I force a reauthentication of the client, to get onto
UB> another users-account.
UB>
UB> I really hope someone can help me with that!
UB>
UB> Thank you!
UB>
UB> Regards,
UB>
UB> Uwe Braunholz
UB>
Alexey Smirnov replied...
Hallo Uwe,
if it is not yet solved, look at the following thread:
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet.secu=
rity/browse_thread/thread/0abc9a1d3e0e4927
LogOut-Event abfangen / LogOut-Form .NET Framework Hallo NewsGroup, beim Abmelden eines Benutzers möchte ich noch Abschlussarbeiten durchführen. Gibt es dafür ein Event, welches ich abfangen kann? Oder kann ich in web.config eine LogOut-Form referenzieren, welches das LogOut dann selbst vornimmt? Beim Abmelde-Button erscheint der Link: javascript: _ _doPostBack('ctl00$LoginStatus1$ctl00', ") Besten faq.de / | http: / / www.vb-hellfire.de / Hallo Thorsten, besten Dank! funktioniert! Ciao, Alberto keywords: LogOut-Event, abfangen, / , LogOut-Form description: Hallo NewsGroup, beim Abmelden eines Benutzers möchte ich noch Abschlussarbeiten durchführen. Gibt es
Shutdown, hibernate, sleep, logout, automatic logout. .NET Framework How do I detect those? Shutdown seem to be fine, it fires Form PowerModeChangedEventArgs e) { if (e.Mode = = PowerModes.Suspend) { Console.WriteLine("Suspending!"); } } Michael keywords: Shutdown, , hibernate, , sleep, , logout, , automatic, logout. description: How do I detect those Shutdown seem to be fine, it fires Form events
reload of page required after formsAuthentication signout / logout? .NET Framework Hello. I have asp.net menu with a logout item. I handle the the menu click as follows: Protected Sub Menu_MenuItemClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MenuEventArgs) Handles Menu.MenuItemClick If Menu.SelectedValue = "Logout" Then Response.Write("Logout") FormsAuthentication.SignOut() End If But notice It does not log me out until resubmit the ASP.NET Discussions MenuEventArgs (1) FormsAuthentication (1) MenuItemClick (1) SignOut (1) Site (1) BlogMetaFinder (1) Logout (1) UnBlog (1) You could redirect to the same page, or you can perform a com BlogMetaFinder(BETA): http: / / www.blogmetafinder.com keywords: reload, of, page, required, after, formsAuthentication, signout, / , logout? description: Hello. I have asp.net menu with a logout item. I handle the the menu click as follows: Protected Sub Menu_MenuItemClick(ByVal sender As