I am updating the cookie as follows
if (Request.Cookies["SSOPortalUser"] == null)
{
HttpCookie myCookieSSOPortalUser = new HttpCookie("SSOPortalUser");
myCookieSSOPortalUser.Value = currentUser.UserLogin.ToString();
Response.Cookies.Add(myCookieSSOPortalUser);
}
else
{
Request.Cookies["SSOPortalUser"].Value = currentUser.UserLogin.ToString();
}
But after redirecting to another page, the browser does not update
Response.Redirect(AppSettings.Instance.AppRoot + "OperationSelection.aspx");
and on the OperationSelection page. I am trying to access a cookie, it shows the previous value.
lbluser.Text = Request.Cookies["SSOPortalUser"].Value
source
share