Hi,
I have configured my win form app to connect to sql server database of asp.net membership tables. I used the same method of membership provider as in web application. I could create user, validate and do all the things as it can be done in web. The only
problem i am facing is how to completely log out the user so that it is not showing online. Here is my code how to do that:
Dim user As MembershipUser = Membership.GetUser(Label1.Text)
'I NEED A CODE TO LOGOUT AS WE DID IN WEB FORMS - FORMSAUTHENTICATION.LOGOUT()
user.LastActivityDate = DateTime.UtcNow.AddMinutes(-(Membership.UserIsOnlineTimeWindow + 1))
Membership.UpdateUser(user)
Application.Exit()
This actually works in a local machine, but when the client is connected from another remote machine, the users are still showing as online.
Please help me find a ...
Go to the complete details ...