sqlmembershipprovider

When the same user ID is trying to log in on multiple devices, how do I kill the session on the other device?

青春壹個敷衍的年華 提交于 2019-11-26 18:20:47
What I want to do is to limit a user ID to only being able to log in to one device at a time. For example, user ID "abc" logs in to their computer. User ID "abc" now tries to log in from their phone. What I want to happen is to kill the session on their computer. The Spotify app does exactly this- Spotify only allows one User ID to be logged in on one device at a time. I'm using ASP.NET membership (SqlMembershipProvider) and Forms Authentication. I've experimented with Session variables but I'm not sure exactly where to go from here. I came up with a pretty awesome solution to this. What I've

Is it possible to change the username with the Membership API

匆匆过客 提交于 2019-11-26 16:49:06
问题 I am using the default sql membership provider with ASP.NET and I would like to provide a page to change the user's username. I believe I am sure I could do this with a custom provider, but can this be done with the default provider? Second part of my question is: Should I allow users to change their username after the account is created? 回答1: It's true that the default SQL Membership Provider does not allow username changes. However, there's no intrinsic reason to prevent users from changing

How to combine using Membership API with own application related data?

北城以北 提交于 2019-11-26 09:48:57
问题 Designing a new application in asp.net 4 I have to make a decision how to use a MS SQL Membership API along with my own data in the MS SQL data base. Firstly I need to store and access user profile data in more flexible manner then the Profile provider supports. Secondly I would like to link other user related information (e.g. Orders). No matter where you store your aspnetdb tables (in the separate data base or in the same data base with your data), the problem stays how to keep your data

Entity Framework: how to solve “FOREIGN KEY constraint may cause cycles or multiple cascade paths”?

*爱你&永不变心* 提交于 2019-11-26 07:34:52
问题 there are lots of questions about this problem, but I couldn\'t solve my case. can some one please take a look at this: I have an Office table which has one-many relationship with Doctor and Secretary tables. Both of the last tables, are derived from Employee table which has a shared-primary-key relationship with predefined Users table created by sqlmembershipprovider . It seems there is a many-many relationship between Users table and Roles table which I haven\'t any hand in it. My problem

When the same user ID is trying to log in on multiple devices, how do I kill the session on the other device?

笑着哭i 提交于 2019-11-26 06:16:27
问题 What I want to do is to limit a user ID to only being able to log in to one device at a time. For example, user ID \"abc\" logs in to their computer. User ID \"abc\" now tries to log in from their phone. What I want to happen is to kill the session on their computer. The Spotify app does exactly this- Spotify only allows one User ID to be logged in on one device at a time. I\'m using ASP.NET membership (SqlMembershipProvider) and Forms Authentication. I\'ve experimented with Session variables