SetCookie() 공개 메소드

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
리턴 void
예제 #1
0
 private void AuthUser(UserModel user)
 {
     IAuthenticator authenticator = new CookieAuthenticator();
     authenticator.SetCookie(user.UserName, true);
 }