How to use ASP.NET membership API in a web service (newbie question)

I have a database where membership information is controlled by the ASP.NET api membership. I also need to access this information from a web service. Can I just use membership classes or is there some kind of limitation that says that these classes can only be used in a script like \ aspx?

+4
source share
2 answers

You can use the membership API wherever you want, but I would think about whether you can really protect your web services so that they can not be abused, and because of abuse I mean that someone comes in and knocks your web services to block accounts, guess user names and passwords, and use any other functionality that you want to provide.

+1
source

You can use these classes, but you need to mark your WebService methods with a special attribute to enable session state .

[WebMethod(EnableSession=true)] 
+2
source

All Articles