I must be missing something obvious. In my surface controller I log in member by using this.Members.Login(model.Username, model.Password) and it correctly returns true. But subsequent call to this.Members.GetCurrentMember() is always equal to null.
Thank you for the reply, but unfortunatelly umbraco.library.IsLoggedOn() is false. I really don't get it. If this.Members.Login(model.Username, model.Password) returns true, there should be logged in member, or am I wrong?
Members.GetCurrentMember() always null
I must be missing something obvious. In my surface controller I log in member by using
this.Members.Login(model.Username, model.Password)
and it correctly returns true. But subsequent call tothis.Members.GetCurrentMember()
is always equal to null.I am using Umbraco 6.2.4. What am I missing here???
Hi Petr,
Try this:
Thanks
Hello Alex!
Thank you for the reply, but unfortunatelly
umbraco.library.IsLoggedOn()
is false. I really don't get it. Ifthis.Members.Login(model.Username, model.Password)
returns true, there should be logged in member, or am I wrong?what Request.IsAuthenticaed shows ?
It's false, Alex.
so your authentication mechanism doesn't work at all
Try to set authentication cookies manually.
http://stackoverflow.com/questions/7217105/asp-net-how-can-i-manually-create-a-authentication-cookie-instead-of-the-defau
Well, it finally works. But to be honest, I don't know what fixed it, maybe recreating of members, maybe something else.
Anyways, thank you Alex for your help.
is working on a reply...