my first actioncontroller is:
return RedirectToAction("Index", "Authentication",new {code = result });
and i use the "result" parameter in diffrent controller. like
public ActionResult Index(string code)
{
...
TempData["valcode"] = code;
return View();
}
[HttpPost]
public ActionResult AuthenticateUser(string validationcode)
{
if (validationcode == TempData["valcode"].ToString())
{
return RedirectToAction("Index", "Home");
}
else
{
...
}
}
it works fine but in url, i see the code value. (http://www.test.com/Authentication/code=123) i dont want code value to be seen in url
how can i hide it from url? (besides encrypting)
TempDatabut that only lasts one request and would be lost if the user refreshed the browser.