Reputation: 2234
I have a database where membership information is being controlled by the ASP.NET membership api. I need to access this info from a web service as well. Can I just use the membership classes or is there is some restriction that says these classes can only be used in a page\aspx kind of scenario?
Upvotes: 4
Views: 605
Reputation: 2249
You can use the Membership API where ever you like, but I would think heavily on whether or not you can secure your web services sufficiently that they cannot be abused, and by abused I mean someone coming in and pounding your web services to lock out accounts, guess user names and passwords, and exploit whatever other functionality you wish to provide.
Upvotes: 1
Reputation: 5903
You can use these classes, but you need to mark your WebService methods with a special attribute, to enable Session state.
[WebMethod(EnableSession=true)]
Upvotes: 2