Posted on: 2/25/2015 5:17:30 PM | Views : 705

We created two sites, one with FBA and other one is Windows authentication. Code base remain same for both sites, only authentication will get differ. Each site has different signout page and authentication pages. FBA authentication has been implemented using SPClaimsUtility.AuthenticateFormsUser method.
In FBA, Logged in User has to redirect to login page after one of our customized validation. For that, I've implemented the following code, but I'm getting an Access Denied error saying that singed user still logged in. It seems logged in user didn't logging out yet
FormsAuthentication.SignOut(); if (HttpContext.Current.Session != null) HttpContext.Current.Session.Abandon(); // clear authentication cookie HttpCookie cookie1 = new HttpCookie(FormsAuthent ...

Go to the complete details ...