Hi, I think the problem is here in the if condition, can you double check. I feel it both the conditions will not satisfy if the cookie vale is null.
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Cookies["LoggedIn"] != null
&& Request.Cookies["LoggedIn"].Value == "true")
{
logoutLinkBtn.Visible = true;
LoginLinkBtn.Visible = false;
}
else if (Request.Cookies["LoggedIn"] != null
&& Request.Cookies["LoggedIn"].Value == "false")
{
logoutLinkBtn.Visible = false;
LoginLinkBtn.Visible = true;
}
}