I am updating the cookie as follows
if (Request.Cookies["SSOPortalUser"] == null)
{
HttpCookie myCookieSSOPortalUser = new HttpCookie("SSOPortalUser");
// Set the cookie value.
myCookieSSOPortalUser.Value = currentUser.UserLogin.ToString();
// Add the cookie.
Response.Cookies.Add(myCookieSSOPortalUser);
}
else
{
Request.Cookies["SSOPortalUser"].Value = currentUser.UserLogin.ToString();
}
But after I redirect to another page the is not updating in the browser
Response.Redirect(AppSettings.Instance.AppRoot + "OperationSelection.aspx");
and in the operationSelection Page I am trying to access the cookie it shows the previous value .
lbluser.Text = Request.Cookies["SSOPortalUser"].Value