How do you programmatically end a session in asp.net when Session.Abandon() doesn’t work?
Session.Abandon() doesn’t seem to do anything. You would expect the Session_end event to fire when Session.Abandon() is called.
Session.Abandon() doesn’t seem to do anything. You would expect the Session_end event to fire when Session.Abandon() is called.
I want to store some data like the user nickname and user ID (table primary key) in the user data section of the auth cookie. The reason I’m doing this is to retain this data when the browser is closed, without having the user relogin.
I am currently designing a Membership/Profile scheme for a new project I am working on and I was hoping to get some input from others.
I am going round in circles and need some help in implementing a Custom MembershipUser so that I can add my own custom Properties to the MembershipUser.
What is the code for determining if a user is in a role?
I purchased a Windows shared hosting account on godaddy that came with 2 MSSQL databases. I setup one to hold my site data and the other installed aspnet membership schema to store site members. The site works perfectly even displaying data from the 1st database. However when I try to login or register I get this nasty error
I am trying to get the Membership Provider to work.
How can I use Membership.GeneratePassword to return a password that ONLY contains alpha or numeric characters? The default method will only guarantee a minimum and not a maximum number of non alphanumeric passwords.
I’m using the ASP.Net SqlMembershipProvider to manage my users. Here is my config:
I am working with the SQLMemebershipProvider and using Profiles. I have a custom class called UserProfile that inherits from the ProfileBase class and I use this to set custom properties like “FullName”. I am wanting to loop through all the users in the database and get access to their profile properties. On each iteration I am calling ProfileBase.Create() to get a new profile and then access the properties.