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
1 answer

Returning 401 instead of the login page

I have an asp.net web application that use FormsAuthentication. Now, the application has a WCF Service that need to use Basic Authentication. So, I need to return the 401 status code, but everytime it's picked up by asp.net and redirecting me to…
Sebastien Lachance
  • 1,927
  • 2
  • 17
  • 24
1
vote
1 answer

SqlExpress mdf DB incompatibility

I used the ASP.NET (.NET4) default ASPNETDB.mdf database that gets created when using membership, in one of my sites. I then copied the site to the web server. Now it has been running for a while so there is content and comments. But I now need to…
Matt
  • 1,562
  • 2
  • 17
  • 27
1
vote
1 answer

asp.net membership api integration with php

Fairly new to this so go easy ;-) Just looking for some general advice really. I'm currently creating a front end system to integrate with a back end system that someone else has created. My front end system just consists of a website, a sign up…
109221793
  • 16,477
  • 38
  • 108
  • 160
1
vote
2 answers

asp.net wrong password just logs me in

i have a simple website with asp.net membership authentication, so some reason which ever password i type for any user just logs me in. Whether i type fffffffff or 55555555 as the password for any user, am just loggedin. The wasn't behaving this…
Katu
  • 39
  • 1
1
vote
2 answers

Should I use Membership for this unusual account system

My asp.net mvc site needs some kind of authorization but it is rather different than the usual concept of users and thus membership. It will be used more for preferences then for authentication actually. Accounts without any password should be…
Boris Callens
  • 90,659
  • 85
  • 207
  • 305
1
vote
2 answers

ASP.NET MVC Lightweight Login/Registration system

I'm on my first MVC project and am at a point where I need to implement my membership system. I'm not sure whether using the out-of-the-box membership system is a good choice for me given that all I need is a simple login/registration system like…
Prabhu
  • 12,995
  • 33
  • 127
  • 210
1
vote
1 answer

Static content and ASP.NET SQL sessions

Here's my scenario: Using SQL Server sessions (due to web farm) customErrors is On using redirect There is a membership provider that uses sessions to store user information In web.config, there are sections that . This…
Nelson Rothermel
  • 9,436
  • 8
  • 62
  • 81
1
vote
1 answer

What is the burden of User.Identity.GetUserId()?

In my ASP.NET MVC applications I use User.Identity.GetUserId() abundantly. However, I wonder if this has severe performance penalties. Alternatively, I believe I can do this: In a View, I can assign the current user's id to a hidden field in the…
renakre
  • 8,001
  • 5
  • 46
  • 99
1
vote
0 answers

Password incorrect or New Password invalid. New Password length minimum: 4. Non-alphanumeric characters required: 0

Unable to change password. Have set the following in webConfig and in .aspx. The value for current. new and confirm password is correct. BUt everytime this error is thrown "Password incorrect or New Password invalid. New Password length minimum: 4.…
CN1
  • 93
  • 1
  • 1
  • 6
1
vote
2 answers

Two MVC Projects, sharing Login, not supposed to

I have an MVC5 project (with other underlying projects), using Web Forms Authentication (SimpleMembership). Later, I created a second MVC project in the same solution. I changed the port for IISExpress debugging to be different than that of the…
jleach
  • 7,410
  • 3
  • 33
  • 60
1
vote
1 answer

Membershipprovider: Automatically logging out when session ends

I have some problems with getting my website to log out the authenticated user automatically when the session ends (the user closes the browser). This is what I have in my web.config:
EmKay
  • 1,089
  • 1
  • 13
  • 28
1
vote
1 answer

ASP.NET Login via Custom WCF Rest Call

I'm writing an admin panel in ASP.NET for an existing set of web service calls. My goal is to use some of the existing login stuff (locking out pages if your not logged in) etc but using my login mechanism. This works by hitting an http post request…
Luke Belbina
  • 5,708
  • 12
  • 52
  • 75
1
vote
1 answer

Add Password Requirements to Membership Provider

Do I need to make a Custom Membership Provider or is there another way? I have a project using ASP.NET Forms Authentication and the Microsoft SQL Membership Provider. The website is DONE. I use this provider everywhere. (Register, Login, Forgot…
1
vote
2 answers

ASP.Net Membership logging in successfully, then redirecting to login page

We're having a load of problems with an ASP.Net Membership application at the moment. For reasons that aren't relevant, we're using a MembershipProvider implementation that uses the old-style Web.config specified credentials and a RoleProvider that…