public SignIn ( string userName, bool createPersistentCookie ) : void | ||
userName | string | |
createPersistentCookie | bool | |
return | void |
public void SignIn(string userName, bool createPersistentCookie)
{
if (String.IsNullOrEmpty(userName)) throw new ArgumentException("Argument nie może być pusty.", "userName");
FormsAuthentication.SetAuthCookie(userName, createPersistentCookie);
}