Making user login persistant with ASP .Net Membership
I have a website that is built in ASP.NET 3.5 & SQL Server 2005, using the sql membership provider, and presumably forms authentication.
I have a website that is built in ASP.NET 3.5 & SQL Server 2005, using the sql membership provider, and presumably forms authentication.
Lets say that you have websites www.xyz.com and www.abc.com.
When starting a new project that required the use of membership providers I found that I could not connect to a remote database that contained the membership database.
How can I access UserId in ASP.NET Membership without using Membership.GetUser(username) in ASP.NET Web Application Project?
I have a requirement to decrypt the Encrypted (not Hashed) passwords located in my aspnet_Membership table. In that database I see the Password (Encrypted) and PasswordSalt fields, and I can look at my web.config to find the machinekey > decryptionKey (validation=”SHA1″ decryption=”AES”).
I’ve seen various questions regarding this issue, but there are a couple of questions that haven’t been asked. If the user forgets their password, I would like them to be able to reset it with only their email address (i.e. there’s no security question/answer). The password is stored as a salted hash, so there’s no recovery possible. Instead, I’d just like the user to enter a new password after confirming that they have requested a reset.
my user will use form authentication against Active Directory or database. Theres no Windows Integrated Authentication there!!
The new MVC4 RTM internet application templates use the SimpleMembership providers as descibed here SimpleMembership
For a web application I switched from using ASP.NET Membership to using my own log in system which just does something like this to mark a user as logged in: