Skip to content

Writing to Session disrupts ASP.NET MVC OpenId SignIn #38

@ameleta-alsco

Description

@ameleta-alsco

Trying to understand why writing to Session with OpenId Connect disrupts the Sign In process.

For example, if I modify HomeController the way below, the SignIn stops working; By SignIn, it will redirect you to Azure AD and return to the Index unauthenticated.

public ActionResult Index()
{
    Session["TEST"] = "TEST"; // Let's make a SignIn disruption
    return View();
}

Removing the code during debug will not rectify the process, only if you restart the app.
Any solution or workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions