SetCookie() public method

public SetCookie ( string username, bool persistent = false, string roles = null, byte tag = null, System.DateTime explicitExpiry = null ) : void
username string
persistent bool
roles string
tag byte
explicitExpiry System.DateTime
return void
Beispiel #1
0
 private void AuthUser(UserModel user)
 {
     IAuthenticator authenticator = new CookieAuthenticator();
     authenticator.SetCookie(user.UserName, true);
 }