Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Trial website

Tags:

c#

.net

asp.net

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 ?

like image 473
Attilah Avatar asked Mar 29 '10 18:03

Attilah


2 Answers

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.

like image 173
Ben Hoffman Avatar answered Oct 29 '22 15:10

Ben Hoffman


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

like image 40
Robert Harvey Avatar answered Oct 29 '22 14:10

Robert Harvey