[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 168
  • Last Modified:

Help with level of user

I'm developing a website where you will have a paid membership, and a free membership

What is the best way to do that? I'm using form authentication. SHould I have a field on my DB with a member type?
(ex. 0 for free, and 1 for pay member) ?

The difference from the free member is that they will not be able to see the contact information, so I need to have a way to know how is a free member and how is not.
1 Solution
Sure, use forms authentication if you want.
Yes you'll need a db field with any user properties you want to store and use.
Using the authenticated user you can extract these properties and test for values when running (query the database).
Some links with examples:
http://aspnet.4guysfromrolla.com/articles/082703-1.aspx (using role based authentication, i.e. you could implement your paid/free easily)

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now