Home  /  Questions  /  Question

60   95.3
Jul 30, 2010

Membership implementation in Design Pattern Framework

I want to confirm in which layer it is best to implement the API for ASP.NET Membership.  In the Design Pattern Framework you have performed all operations using SOA, but my question is should it be added to the Service Layer or to the ASP.NET Presentation Layer?

830   99.9
Aug 05, 2010

The proper place is to add it in the Service Layer (just like we have done in the Design Pattern Framework, with Login, Logout, etc).
However, you probably still want to add some extra code in the Presentation layer, to manage authentication cookies, by including calls to FormAuthentication methods, such as, FormsAuthentication.SignOut.

Hope this helps.