Author: vdecristofaro | Posted on: 9/21/2010 1:31:28 PM | Views : 851

Hello,
I have a page in my MVC application that shows all the users registered on the site. I retrieve informations about an User with this call:

Membership.GetUser(userKey, true)Then in the view I construct a table showing all these informations and it seems that every user (three at the moment) is online. But this it's not true!!!

These are the logon and logoff actions I use

[HttpPost] public ActionResult LogOn(LogOnModel model, string returnUrl) { if (ModelState.IsValid) { if (MembershipService.ValidateUser(model.UserName, model.Password)) { System.Web.Security.FormsAuthentication..SignIn(model.UserName, model.RememberMe); if (!String.IsNullOrEmpty(returnUrl)) { return Redirect(returnUrl); } else { return RedirectToAction("Index", "Home"); ...

Go to the complete details ...