Questions tagged [asp.net-membership]

ASP.NET membership gives you a built-in way to validate and store user credentials.

ASP.NET Membership works on top of forms-authentication and gives you:

  • Ability to create and store users and their passwords with little or no code.
  • Out-of-the-box support for changing, resetting, retrieving and encrypting passwords.
  • Choice of two storage locations - SQL Server and Active Directory.
  • Custom providers can be created to store users in custom stores

Resources

MSDN - Introduction to Membership
4guysfromrolla - Examining ASP.NET's Membership, Roles, and Profile

3256 questions
1
vote
0 answers

Web.Security.Membership and Web.Security.Roles

I am currently using Web.Security.Membership and Web.Security.Roles. For some reason Membership always produces the expected results but Roles seems to be a problem. When debugging the following code the result is different for roleExists1 and…
1
vote
1 answer

Error in autogenerated mysql memebership/profile and role provider tables

For the first time I am trying to use the build in membership/role and profile provider in MySQL .NET Connector 6.2.3 and I’m using the auto generate schema property in my web.config. However, I’m experience some strange problems. When I’m running…
aweis
  • 5,350
  • 4
  • 30
  • 46
1
vote
1 answer

ASP.NET Membership controls reset password postback error

I have written a simple jQuery dialog box that will appear in an asp panel if the logged in user has not reset their password in the last 90 days. This is working great, however when the user types in their password and presses submit to insert the…
EvanGWatkins
  • 1,427
  • 6
  • 23
  • 52
1
vote
1 answer

asp.net display friends logged in

i want to display friends of a user who are currently logged in.
user321963
  • 549
  • 2
  • 8
  • 17
1
vote
3 answers

ASP.NET Membership - User Times out Earlier than Expected

Is there any other reasoning other than the timeout setting in the web.config not being used? It might be the default timeout of 30 minutes but it is definitely less than 30 minutes.
TimLeung
  • 3,459
  • 6
  • 42
  • 59
1
vote
0 answers

Is there a compatible version of Asp.Net Membership system with SQL Server 2016?

We ran a compatibility test between our SQL Server 2012 and SQL Server 2016. We ran into several Unqualified Join(s) detected issues. All of them came from dbo.aspnet_Membership_XXX stored procedures. Examples are…
Myddraall
  • 103
  • 1
  • 9
1
vote
3 answers

Redirect on authorization failure

I have several sections
Alexander
  • 11
  • 2
1
vote
3 answers

Inherit SqlMembershipProvider and disable CreateUser() and DeleteUser()

I want to inherit SqlMembershipProvider, setup the membership settings to use the derived custom provider, and prohibit someone from calling Membership.CreateUser() and Membership.DeleteUser(). I have an external application that will offer a user…
Zach
  • 97
  • 2
  • 7
1
vote
2 answers

saving the login name as current user identity in asp.net

So I'm making a asp.net login. I want the login name that people use to match an id in my SQL database. So that I can retrieve their information. But currently when I use the code below, from which I get the name of the computer I am currently on.…
1
vote
4 answers

Why must Membership Provider be specified

I'm trying to make my own login functionality without using Membership Provider, but after I login using the System.Web.UI.WebControls.Login control and set the authentication cookie using FormsAuthentication.SetAuthCookie(username, rememberMe); I…
Homam
  • 23,263
  • 32
  • 111
  • 187
1
vote
1 answer

ASP.NET Membership provider for windows forms application

How to implement Membership provider and use the logon model in windows forms application? or for office templates in Visual Studio 2010.
Lilly
  • 11
  • 1
  • 6
1
vote
2 answers

Get a list of banned users by date descending

Im doing something like this to get a list of all users that have been blocked: public IQueryable GetBannedUsers() { return db.Aspnet_Memberships.Where(x => x.IsApproved == false).Select(x => x.Aspnet_User); } Im doing this to…
raklos
  • 28,027
  • 60
  • 183
  • 301
1
vote
2 answers

SQL CLR stored procedure for encryption

Background: I have an SSIS package that loads profile data from system A and creates corresponding profiles and membership users in system B. System B uses a custom ASP.NET Membership Provider that must be able to decrypt the passwords generated by…
mikesigs
  • 10,491
  • 3
  • 33
  • 40
1
vote
1 answer

Get the users email based on their username

Is there any built in way to get a users email address based on their username in ASP.NET 4.0? Or do I have to query the necessery tables? I'm using this to get the logged in user: string username =…
Jimmy Collins
  • 3,294
  • 5
  • 39
  • 57
1
vote
2 answers

Easiest way to implement this dynamic login scheme for asp.net

I currently have a site where different users can login, and depending on their sub domain, are presented with different data from different databases. I am overriding the SqlMembershipProvider to use a "temp" connection string, that I dynamically…
John B
  • 20,062
  • 35
  • 120
  • 170