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
2 answers

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…
freeflying
  • 215
  • 3
  • 12
1
vote
2 answers

How to determine if a profile data member has ever been set?

I've asked this before but I'm resurrecting it because I didn't get a satisfactory response. I have a profile variable, and when I load it then it is assigned default values. I need to check to see if it has ever been assigned. Typically I'd use an…
Curtis White
  • 6,213
  • 12
  • 59
  • 83
1
vote
2 answers

What are these ASP.NET Identity, Memberships? When to use them?

I have a website developed by using ASP.NET and DB is MYSQL. In there user authentication is done against registered users inside a table. So What is this ASP.NET identity? Membership? things. When to use them? Are they secured approaches? Are they…
Prageeth Liyanage
  • 1,612
  • 2
  • 19
  • 41
1
vote
1 answer

asp.net membership not sending login reminders

I'm using asp.net's built-in membership provider with security question-and-answer enabled for password recovery against a SQL Server 2005 db. For some users, this works fine and they're able to receive their passwords. For others, and it's not…
Stark Raving
  • 400
  • 1
  • 3
  • 7
1
vote
2 answers

Profiles content check if set?

Using asp.net profiles, I've stored a complex type (class) and retrieved it. But it is returning a new object that is not initialized instead of null? Is this the expected behavior, if so how can I determine if I've saved data for the given…
Curtis White
  • 6,213
  • 12
  • 59
  • 83
1
vote
1 answer

Get number of users online

I looked around for this issue and have found two approaches: use a database table to log users logging in and remove the entry when they log out or session ends; or use Membership.GetNumberOfUsersOnline(). I tried Membership version first but when…
NoBullMan
  • 2,032
  • 5
  • 40
  • 93
1
vote
0 answers

How to disable disabled account to use applicaton

ASP .NET MVC3 application uses login controller from MVC3 application template below. Controllers are decorated by [Authorize] attribute: [Authorize] public class CheckoutController : ControllerBase User enters user name and password and click…
Andrus
  • 26,339
  • 60
  • 204
  • 378
1
vote
3 answers

Using ASP.NET tables generated by aspnet_regsql.exe in a SQLite database

I'm building a small ASP.NET MVC site where I want to use SQLite. While I already know how I will be connecting to the database (using DbLinq), I don't understand how to put the ASP.NET tables generated by aspnet_regsql.exe into an SQLite…
Maxim Zaslavsky
  • 17,787
  • 30
  • 107
  • 173
1
vote
2 answers

Last login time using the ASP.NET Membership API

I want to find out the last login time for a user in my ASP.NET MVC 1.0 application. I'm using the Membership provider for authentication. Although I'm able to retrieve the last login time using: public ActionResult LogOn(string userName, string…
Dhruv
  • 952
  • 1
  • 11
  • 26
1
vote
1 answer

Select a MemberType already in the Registration Form in Umbraco 7.2.6

i am searching for a solution where it is possible to get a registration form in umbraco with a MemberType choice. I already found questions for getting membertypes of members that are already registered or questions about creating membertypes…
1
vote
1 answer

Can I force in a temporary password answer to asp.net membership?

We recently added the ability for clients to reset their own passwords using the security question. For new clients, this is fine, as we can set the security question and answer on account creation. For existing clients, this is an issue. For…
Noah
  • 728
  • 13
  • 28
1
vote
1 answer

Can I use the Membership provider in ASP.NET WebForms with my own User database? If so, how?

I am looking for ways to implement login functionality in my ASP.NET WebForms application. I know that I can use the default Membership provider which creates its own tables. I want to know if I can use my own schema for the database. I don't want…
1
vote
0 answers

Win32 Exception Error: The Parameter was incorrect after deploying to GoDaddy

I have ran into an issue with this error. Here is the rest of the StackTrace (the first line of it, let me know if I need to provide the complete StackTrace ).. [SqlException (0x80131904): A network-related or instance-specific error occurred while…
Chris
  • 2,953
  • 10
  • 48
  • 118
1
vote
0 answers

User/Role management using existing Database (Web form)

I am want to make a web site which admin account can add roles. i want each role to be able to create users with certain roles . for example ADMIN can add any role! but a SUPPERUSER can create users with FOO role only and ... ! because of this…
Mohammad Nej
  • 33
  • 1
  • 7
1
vote
1 answer

How to set the "weak password" error strings of a membership provider?

I have a membership provider in my web.config with the passwordStrengthRegularExpression attribute set. I dropped an asp:CreateUserWizard in a page and tried to create a user with a weak password (ie didn't match the regex in the web.config). The…
Ax.
  • 687
  • 7
  • 15
1 2 3
99
100