I am trying to get the below code to work, but with no luck;
bool success = Sitecore.Security.Authentication.AuthenticationManager.Login(UserName.Text, Password.Text);
if (success)
{
string path = Request.QueryString["path"];
Sitecore.Web.WebUtil.Redirect(String.IsNullOrEmpty(path) ? "/" : path);
}
success is always false, eventhough i know that the entered username and password is correct and created on the extranet domain.
What am i missing?
(It's a Sitecore 6.2)