Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7722297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:08:06+00:00 2026-06-01T04:08:06+00:00

This holds true in IE, FireFox, and Chrome on dev box- including after manually

  • 0

This holds true in IE, FireFox, and Chrome on dev box- including after manually deleting cookies in IE Internet Options
I sign in as a user, change password (works) and sign out. I can then log in as the user with both the old and new password – a garbage password does fail authentication.
Log IN –
Change Password –
Sign Out –
Log In with old password again, Authenticates –
Sign Out –
Log In with New password, Authenticates –
Sign Out –
Log In with junk password fails of course
Rinse and Repeat – same behavior
Is there a code piece missing for the Azure part? Disconcerting – grrr
web.config:

<authentication mode="Forms">
    <forms loginUrl="~/Account/LogOn" timeout="15"></forms>
</authentication>

SignOff code:

public ActionResult LogOff()
    {
        FormsAuthentication.SignOut();

        // Drop all the information held in the session
        Session.Clear();
        Session.Abandon();

        // clear authentication cookie
        HttpCookie cookie1 = new HttpCookie(FormsAuthentication.FormsCookieName, "");
        cookie1.Expires = DateTime.Now.AddYears(-1);
        Response.Cookies.Add(cookie1);

        // clear session cookie
        HttpCookie cookie2 = new HttpCookie("ASP.NET_SessionId", "");
        cookie2.Expires = DateTime.Now.AddYears(-1);
        Response.Cookies.Add(cookie2);
        foreach (var cookie in Request.Cookies.AllKeys)
        {
            Request.Cookies.Remove(cookie);
        }
        // Redirect the user to the login page
        return RedirectToAction("LogOn"); 
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:08:07+00:00Added an answer on June 1, 2026 at 4:08 am

    I didn’t see the answer spot!
    Resolved! Appears EF was caching previously received entities scatteredcode.wordpress.com/tag/dependency-injection/
    Force a new membership provider instance to be created for that web request, and thus guarantee that the database context will not be holding a stale user entity. Thank you Scattered Code –

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a folder named repository in my admin folders. This folder holds 2
I have this DependencyProperty which holds an entity with a property that is a
Using this sample : I have make my own Fragment that holds tabhost and
I have this small class called City that simply holds some information about a
I have a model that holds user address. This model has to have first_name
Maybe a FAQ at this website. I have a TableViewController that holds a form.
I have a table TreeStructures wich holds structures of Trees. This table has columns
I have written an NHibernateSessionFactory class which holds a static Nhibernate ISessionFactory. This is
INFORMIX-SQL 4.1 - There's this ASCII UNIX file called passwd in /usr/informix/etc which holds
I have `a string example = this site holds all the examples from The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.