Home > Asp Net > Asp Net Logout Not Working

Asp Net Logout Not Working

umlaute not rendered correctly Force browser to download latest CSS file How does Berlin Transport Validation Stamp mark current date and/or expiry date? Please any help willl be appreciated Frank Zagor Guest November 10th,06:23 PM #2 Re: FormsAuthentication.SignOut() problem This might be a page local caching issue. Privacy Policy Site Map Support Terms of Use Developer Network Developer Network Developer Sign in MSDN subscriptions Get tools Downloads Visual Studio MSDN subscription access SDKs Trial software Free downloads Office Join Now For immediate help use Live now! http://seesbg.com/asp-net/asp-net-loginstatus-logout-not-working.html

Means now session will timeout after 15 minutes,but when i click the logout button,i want the session to be ended before that 15 minutes. When I click on this control to logout, I get this error: A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but If your handler for the LoggedOut event redirects the client browser to another page, the authentication cookie will be cleared from the client.ExamplesThe following code example attaches an event handler to Get 1:1 Help Now Advertise Here Enjoyed your answer?

The event handler in this example is empty. How? Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode November 10th,04:00 PM #1 FormsAuthentication.SignOut() problem Hi All, protected void Page_Load(object sender, EventArgs e) { Session.Abandon(); Response.Redirect("../Login.aspx"); } Permalink Posted 21-Nov-11 22:10pm Elanchezian523 Rate this: Please Sign up or sign in to vote.

Here is the section from my web.config path="/" requireSSL="false" slidingExpiration="true" defaultUrl="default.aspx" cookieless="UseDeviceProfile" enableCrossAppRedirects="false">

Login.aspx exists. What happened? Solution 2 Accept Solution Reject Solution Hi, Put it under Page_Load public void Page_Load(object sender, EventArgs e) { Session.Clear(); Session.Abandon(); Session.RemoveAll(); FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); Roles.DeleteCookie(); } Permalink Posted problems with using LoginStatus on master page P: n/a Jeff hey asp.net 2.0 I've placed a LoginStatus control on a master page (so I don't need to have it on every

I have a loginstatus control on a master page.

When logged in using Forms Auth, I click LogOut andI get the following page with a bunch of Have you tried to turning off the protection property totry to verify which page you are being redirected to? Why Would the President-elect have a Transition Visit before December 19? check it out Is they ANYTHING else I can try??

When I click on this control to logout, I get this error: A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but Join & Ask a Question Need Help in Real-Time? It did not solve the problem. Nice.

and of course if I login again with the ReturnUrl there, it immediately calls the logout page. http://www.codeproject.com/Questions/287701/Login-Status-not-clearing-session-when-click-logou Add weight to one side of a see-saw to balance it Can spacecraft defend against antimatter weapons? Browse other questions tagged c# asp.net .net authentication membership-provider or ask your own question. Are you sure it's on the logout?

The commented code is how I had it set up first.