Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0MembershipProvider lacks UserLogOUT functionalityMembershipProvider lacks UserLogOUT functionality
Previous
 
Next
New Post
10/14/2006 11:37 AM
 

I spent some time searching the forums to no avail, so forgive me if this has been posted elsewhere and analyzed to death.

Could someone explain to me why the MembershipProvider class does not include a USERLOGOUT function?  I can't fathom why the core team would not want to include such a function for non-ASPNET membership providers (or why the existing logout code isn't moved to such a function in the AspNetMembershipProvider).  As it stands, it seems that while it is trivially easy to inherit from an existing membership provider class to extend DNN membership functionality, it seems impossible to add any OnLogout code without modifying the core. 

I wanted to check here to see if I was missing something before I registered this oversight in Gemini.  Am I?

 

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
10/14/2006 1:54 PM
 

Hey Brandon,

I just scanned the DNN namespaces and found AuthenticationLogOff() method in

DotNetNuke.Security.Authentication.AuthenticationController.AuthenticationLogOff()

I never used it before, but I am going to check it out later.

John

 

Edit:
It works.
dim logout as dotnetnuke.security.authentication.authenticationcontroller
logout.authenticationlogoff()

 
New Post
10/16/2006 10:17 AM
 

Hi John,

Thanks for the reply.  My desire really isn't to FIND a function that I can call in order to log out a user, although it is interesting that there are no references to the logoff function you pointed out in the DNN code.  Why doesn't logoff.ascx use this function?

But back to my original question.  The provider model should allow a developer to replace the functionality that is within the domain of that provider.  With the membership provider, I can clearly create a new provider that handles membership in any way that I desire.  However, there is no way to extend or create custom logoff logic!  I can't extend the logoff function you pointed out without a core change.  Why bother with the provider model at all?

It seems to me that the logoff.ascx control (and any other code that logs off a user, if any) should be routed through the membership provider.  That way, if a developer desires to create custom behavior, s/he may do so.  Such is the intent of the provider model.

I guess what I would expect is that the UserController would contain a UserLogout function (Why doesn't it already?), and within the code of that class we would see something along the lines of:

memberProvider.UserLogout(currentUser)

... and the membership code could do whatever it desired.  Obviously, the AspNetMembershipProvider wouldn't need to do anything.  But that fact doesn't mean that DNN should ignore those developers with different membership requirements.

B


Brandon Haynes
BrandonHaynes.org
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0MembershipProvider lacks UserLogOUT functionalityMembershipProvider lacks UserLogOUT functionality


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out