locked
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 

    http://blog.bekijkhet.com/2014/05/how-to-authenticate-mvc5-web-users-with.html

    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)
    {
        <text>
            <ul class="nav navbar-nav navbar-right">
                <li class="navbar-text">
                    Hello, @User.Identity.Name!
                </li>
                <li class="navbar-text">
                    @Html.ActionLink("Logout", "LogOff", "Home");
                </li>
            </ul>
        </text>
    }

    Kindly help. Thank in advance.

    Monday, March 9, 2015 6:25 AM

All replies