membership

How to handle "Remember me" in the Asp.Net Membership Provider

Ive written a custom membership provider for my ASP.Net website. Im using the default Forms.Authentication redirect where you simply pass true to the method to tell it to "Remember me" for the current user. I presume that this function simply writes a cookie to the local machine containing some login credential of the user. What does...

ASP.NET membership/SQLMembershipProvider Source Code

In the SQLMembershipProvider source for ASP.NET membership, there is a custom exception, MembershipPasswordException. The definition of it is not part of the source, but when I do a goto definition on it, it opens the definition, which indicates: [from metatdata] and the file it came from is a dll, system.web.dll from a temporary direct...

what's a good general purpose billing / recurring membership system?

something open source, or inexpensive... preferably in php, other languages will be considered. I'm looking mostly for clean code, a nice place to build out from... I don't need any CMS features. Thanks, -Eric ...

ASP.NET membership session cookie

I hesitate to make a decision about the authentication and authorization in a new web application. The Membership, Roles and Profile built in Asp.net 2.0 seems impressive, but there are too many things behind them, which is uneasy to find out. I've decide use my own DB structure so I have to rewrite my own provider, but there is still ...

Designing Membership access rights for an application

What would be the best practices to design a membership based system. Say you have 3 different kinds of membership (Free, Pro, Unlimited) Each of these memberships allow different levels of access within the system. eg:This list is variable and can change overtime as new features are added to the system. Free: Can store 2 Photos,Has ...

Generating scripts for database role membership in SQL Server 2005

I have a database with a lot of users in it. Those users belong to different built-in roles in the DB (eg db_ddladmin). I want to generate a script that creates those same users with the same role assignments to use in a different database. SQL Management Studio seems to only generate sp_addrolemember calls for user-defined roles, not ...

Restrict Area to a given role

I have an area setup in MVC2, called Admin/, which I want I only want Users who belong to the role "admins" to have access. I know I can decorate each of the methods with [Authorize(Roles="admins")], but this seems tedious when your talking about multiple controllers with multiple actions. Is there an better and cleaner way? ...

ASP.NET ApplicationId

Hi, I've read somewhere that ApplicationID is a unique id for a website (iis site path). But I'm still confused. Here are my questions.. When and why do I need this? I'm trying to implement asp.net membership for a website and I'll create some additional SQL tables (such as Companies, Services, etc) other than asp.net membership tables...

What membership software should I use for a web application?

Hi guys, I am currently the programmer for an not-for-profit organization which specializes in tree restoration / planting trees. Right now, we are developing a web app for our customers where each client can view its current purchases, the amount of trees that they have bought, and the exact areas where each tree is being planted. Wh...

ASP.Net MVC Authentication

Hi, I'm aware this has been asked a million times, but all I could find is either very simple scenarios or over-complicated ones that aren't of much use to me (like the huge MembershipProvider sample implementation at MSDN). Here's my problem : I have a database with a Users table. A User has a username, password and some other importa...

Why "Membership" section doesn't appear in the Web.config?

Hello.. ASP.NET 4.0 and C# I'm using the default membership provider with the SqlExpress DB that the ASP.NET had created for me, but I want to modify some settings. so I went to the web.config file to search for the and to change setting there, but I didn't find them! I don't want to create a new provider. I just want to modify the...

How do I programmatically list which ASP.Net Role can access a page?

Is there a way of listing which roles have access to a given page via code? Example, I have a Testpage.aspx, and I wanted to list the roles allowed for this page when a user accesses the page. The URLAuthorizationManager must be able to find this out somehow, so there must be a way it knows what roles are configured in the webconfig for...

Membership and event API? Or should I do it myself?

I've been tasked with setting up a society's website. I'm a full time Django (at al) web developer so I was happy to take on the task. Going through the specs, they want to control memberships so that all applications need a "second" (read: sponsor, referee, etc) and then they need to pay a subscription fee to be part of the club. Thi...

Why am I having this RoleProvider problem?

I currently have 2 simple ASP .Net applications. Both applications share the same aspnetdb membership database for membership, roles and providers and the same encryption and decryption keys. They also have seperate websites and seperate application pools in IIS. The problem I am having is that despite both applications having a role pr...

ASP.NET Membership Profile

Hi I want to send out an email to all users where their birthday is today i am using the built-in asp.net (3.5) membership. All users have a profile (stored in aspnet_Profile) which contains a date/time property called 'birthday'. I need to get a list of users email addresses from the 'aspnet_Membership' table where a users birthday is...

ASP.NET to WCF - passthrough security?

I have a MVC website that sits on top of a WCF service. The WCF service is also accessible to the internet with username/password authentication using message security and certificates. This is setup and working. Both the website and the service use the same membership store, using the membership API. A user can log onto either the web...

.NET Membership - Register, login etc. works. Password reset doesn't...

I'm trying to allow for reset password functionality to my site without utilizing question/answer functionality (this is deactivated in the membership entry in web.config). However when calling resetPassword (using the automatically generated controller/service/provider from the .NET MVC framework) an error is thrown (Input string was n...

How do I integrate ASP.NET Membership in PHP sites?

I am looking to use an open source CMS/blog site like WordPress or Drupal. I need it to work with the ASP.NET Membership I already have running my current website and community site. I am assuming I need to muck with (hand write) some cookies to pass back and forth. So how would/have you done it? I am looking for creative ideas on how ...

Using SqlMembershipProvider when ActiveDirectoryProvider fails to log a user in

I have a requirement to allow access to an app with users being authenticated by AD. Sadly, not all of the users who can access the app will have been authenticated this way so I need to provide a mechanism whereby if a user arrives as the site their authentication is checked using AD and if it fails, they are handed off to a login page ...

Privacy of member variables within the methods of other member variables

Do the methods of a member variable have access to other private member variables within the same class? I have in mind a functor member variable. Can a pointer to a private member variable be dereferenced and assigned to, outside of the class? What about in the method of another member variable? Maybe something like class A { some...