mugsey
asked on
Membership.GetUser() method returns null
I am using forms authentication....and trying to lockdown a folder using roles.
Membership.GetUser() return null when web.config is <deny users="?"/>
but works fine when web.config <deny users="*"/>
Why is this?
Membership.GetUser() return null when web.config is <deny users="?"/>
but works fine when web.config <deny users="*"/>
Why is this?
ASKER
Yes but I do authenticate
this code is executing fine
if (Membership.ValidateUser(L oginUserNa me, LoginPassword))
{
e.Authenticated = true;
}
this code is executing fine
if (Membership.ValidateUser(L
{
e.Authenticated = true;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://msdn.microsoft.com/en-us/library/8aeskccd(VS.80).aspx