We are upgrading from 6.4 to 8.2 and we have some custom login pages for several clients. I used to be able to do something like this:
if (
(System.Web.Security.Membership.GetUser(usernameBox.Text).IsApproved) &&
(Sitecore.Security.Authentication.AuthenticationManager.Login(usernameBox.Text, passwordBox.Text, false))
)
{
redirectUrl = Page.Request.Url.GetLeftPart(System.UriPartial.Authority) + "/sitecore/shell/default.aspx";
Response.Redirect(redirectUrl);
}
But if I do that now it sends me to the default Sitecore login page. I know that it logins them in and as long as I don't try to get into the content management part it is fine. It is like they are not getting the right cookie. Do I need to use something besides AuthenticationManager?