简体   繁体   中英

ASP.NET Trial website

I created a web app and I want the users of the app to use limited functionality free. Or I might even decide down the road to enable free users to use the app for no more than, say 10 days.

is there a library or framework which helps with such issues ?

There are many ways to do it. One of the simplest, if you are using ASP.NET authentication is to use Roles. Each user can belong to any number of roles. You can setup a free role and full user (paid user) role and check on your pages to see what kind of user they are. Based off of that check you can add, remove, or change functionality how every you like.

You can use ASP.NET's Membership API for this. You will need to write your own business logic to handle the 10 days.

An excellent tutorial of the Membership API, along with many refinements such as Email verification of accounts, can be found here:

Examining ASP.NET's Membership, Roles, and Profile
http://www.4guysfromrolla.com/articles/120705-1.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM