Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Niker 21 posts 91 karma points
    Jun 28, 2019 @ 13:10
    Niker
    0

    Forms Authentication it is set after reloading the page

    Hello, user sets itself after reloading the page

    public ActionResult HomePost(Home model)
        {
            if (ModelState.IsValid)
            {
                FormsAuthentication.SetAuthCookie(model.Topic, false);
                var user = User.Identity.Name;
                return View("Home", model);
            }
            //Do some stuff here, then return the base method
            return View("Home", model);
        }
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies