I want to automatically unlock after a set priod of time.
Found this article...
But I am confused where to put some code...
Where do I put this, in a seperate .cs file?
using System;
using System.Configuration.Provider;
using System.Web.Security;
public class AutoUnlockProvider : SqlMembershipProvider
{
private int autoUnlockTimeout = 60; //Default to 60 minutes
public override void Initialize(string name,
System.Collections.Specialized.NameValueCollection config)
{
string sunlockTimeOut = config["autoUnlockTimeout"];
if (!String.IsNullOrEmpty(sunlockTimeOut))
autoUnlockTimeout = Int32.Parse(sunlockTimeOut);
config.Remove("autoUnlockTimeout");
base.Initialize(name, config);
}
//other provider overrides
} Go to the complete details ...