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);
        }
    
Please Sign in or register to post replies

Write your reply to:

Draft