Contents tagged with Security
-
Automatic creation of membership users and saving the result to csv file
While working with Membership and roles providers, you may need to create the users based on your data and give them a random password.For example, you may have a table with customers and you want to give each customer a user/password to login to your system.
-
Login control FAQ :
I have posted a thread on the forums which list all the FAQ about the Login control.
-
Displaying Online users using Linq-to-entities.
A frequently asked question on the forums is "how to display the Online users when using Membership ?
-
Hiding some page controls from the Unauthenticated users
If you want to hide controls in the page that is being displayed by the logged in and not logged in users , then you can check the Request.IsAuthenticated property which returns true if the user is logged in ( of course you must be using Windows or Forms authentication). For example, If you want to hide a button from the anonymous users , you can write : Button1.Visible=Request.IsAuthenticated; If you have many controls that you want to hide , you can group them inside a Panel : Panel1.Visible=Request.IsAuthenticated; This will hide the Panel including the controls inside it.
-
Sharing ASP.NET security Database between different applications
This blog will mention the steps that is required to share the asp.net security database between different applications.
-
Preventing the Deleted Users from logging to your site
while working with Forms Authentication and Membership services , if the user selects " remember me " check box in the login dialog ,the runtime will create a persistent authentication cookie for him, the persisted cookie is responsible to keep the user logged in for a specified period(even he closed his browser) ,and the default period is 30 minutes in .Net 2.0 or later , and you can change it to some value lets say 50 minutes as follows :
-
Redirecting the Users to different page based on there roles
Hi,