Logout from MVC application which uses Azure ACS login. RRS feed

  • Question

  • User1098072049 posted

    Hi All,

    I have created an MVC application where I use ACS to authenticate into the application.

    The steps I took to build the authentication is as given in the link 


    I have followed the steps mentioned to logout as in the above link. But, still in application the Request.IsAuthenticated is true even after logout.

    This is the below code where I check Is authenticated or not.

    @if (Request.IsAuthenticated)
            <ul class="nav navbar-nav navbar-right">
                <li class="navbar-text">
                    Hello, @User.Identity.Name!
                <li class="navbar-text">
                    @Html.ActionLink("Logout", "LogOff", "Home");

    Kindly help. Thank in advance.

    Monday, March 9, 2015 6:25 AM

All replies