asp.net 웹 응용 프로그램에 대한 android webview를 사용하고 있으며 아래 코드는 웹 브라우저에서 잘 작동하는 선택된 국가를 변경한다고 가정하지만 안드로이드 webview와는 작동하지 않습니다. 나는 그가이 추가HTML 쿠키가 android webview와 작동하지 않습니다.
protected void chgcontrybtn_Click(object sender, EventArgs e)
{
if (Request.Cookies["countryCookies"] != null)
{
Response.Cookies["countryCookies"].Expires = DateTime.Now.AddDays(-1);//to remove cookies
Response.Redirect("Index.aspx");
}
else if (Request.Cookies["Location"] != null)
{
Response.Cookies["Location"].Expires = DateTime.Now.AddDays(-1);
Response.Redirect("Index.aspx");
}
}
코드 전용 답변은 링크 전용 답변만큼 쓸모가 없습니다. 문제가 무엇인지 설명하고 제안 된 솔루션이 해결해야하는 이유를 설명하십시오. – IInspectable