Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello all,How would I login in a Member from a Base Class?
What do I need to do?
Appreciate your help
Thanks,Warren
The standard ASP.NET Membership stuff should work, provided that you're invoking a method in base which is on the same domain.
Thanks Aaron care to share some more details please as I don't know my way round the ASP.NET membership stuff.
Thats like replying "Yes" to my question, care to expand on it mate ;)
http://msdn.microsoft.com/en-us/library/ff648345.aspx
See step 4, authenticating users.
Warren, when you say Base, do you mean /Base (REST)? (As opposed to an inherited "base" class in .NET)
There are a set of member library methods for /Base, take a look at:
umbraco.presentation.umbracobase.library.member.login( loginname, password )
That will add the member to the cache (cookie/session). As Aaron mentions, this set a cookie for the domain that /Base is on, so if you are calling it from a different domain, it wont work.
Good luck, Lee.
Thanks Lee, Aaron and Kenny for all your ideas.
Quick chat with Lee on this on MSN and the quick easy win is to use the API method
However the proper way would be better to use ASP.NET membership provider stuff, just in case the membership provider changes in the future.
Warren
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How do I login a Member from CodeBehind in a Base class?
Hello all,
How would I login in a Member from a Base Class?
What do I need to do?
Appreciate your help
Thanks,
Warren
The standard ASP.NET Membership stuff should work, provided that you're invoking a method in base which is on the same domain.
Thanks Aaron care to share some more details please as I don't know my way round the ASP.NET membership stuff.
Thats like replying "Yes" to my question, care to expand on it mate ;)
http://msdn.microsoft.com/en-us/library/ff648345.aspx
See step 4, authenticating users.
Warren, when you say Base, do you mean /Base (REST)? (As opposed to an inherited "base" class in .NET)
There are a set of member library methods for /Base, take a look at:
That will add the member to the cache (cookie/session). As Aaron mentions, this set a cookie for the domain that /Base is on, so if you are calling it from a different domain, it wont work.
Good luck, Lee.
Thanks Lee, Aaron and Kenny for all your ideas.
Quick chat with Lee on this on MSN and the quick easy win is to use the API method
However the proper way would be better to use ASP.NET membership provider stuff, just in case the membership provider changes in the future.
Warren
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.