Hello.
I need to realize for administrator ability to block/unblock user. I do it by following way:
MembershipUser mu = Membership.GetUser(Username);
mu.IsApproved = Status;
Membership.UpdateUser(mu);
but if this user is already logged that these changes will be only during next login. I need to throw this user to login page in next his request. I have 2 way:
1. Add to verification to each request
2. remove his session
How can I realize second way? I try to do it:
HttpCookie c = FormsAuthentication.GetAuthCookie(Username, false);
c.Expires = DateTime.Now;
c.Value = String.Empty;
but it does not help
...
Go to the complete details ...