Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
I think you have to set the asp.net auth cookie and possibly refresh the page for it to work. If you use the aspnet Login control at least the first part will be handled automatically.
Hi,
I am trying to login a valid user and then retrieve the users information, but gets null value according to the code below:
--------------------------------------------
IUser user;
SecurityHandler.Instance.AuthenticateUser(LoginUnameBox.Text, LoginPasswBox.Text, out user); //user is ok with correct data
user = CommunitySystem.CurrentContext.DefaultSecurity.CurrentUser; <----------- Current user is null.