fafan_iran
چهارشنبه 21 تیر 1385, 14:26 عصر
با سلام
من در asp.net از cookiesاستفاده کردم . ولی موفق به remove آنها نمی شوم . من از دستورات زیر نیز استفاده کرده ام
Cookies.Remove
Dim objCookie As HttpCookie
objCookie = New HttpCookie("strKeyCode")
objCookie.Expires = DateTime.Today.AddYears(-1)
Response.AppendCookie(objCookie)
و همینطور
objCookie.Expires = Now
و
Response.Cookies.Item("strKeyCode").Expires = Now و objCookie = Nothing و
وResponse.Cookies("strKeyCode").Expires = DateTime.Now.AddYears(-30)
لطفا کمک کنیدددددددددددددد.
با تشکر
من در asp.net از cookiesاستفاده کردم . ولی موفق به remove آنها نمی شوم . من از دستورات زیر نیز استفاده کرده ام
Cookies.Remove
Dim objCookie As HttpCookie
objCookie = New HttpCookie("strKeyCode")
objCookie.Expires = DateTime.Today.AddYears(-1)
Response.AppendCookie(objCookie)
و همینطور
objCookie.Expires = Now
و
Response.Cookies.Item("strKeyCode").Expires = Now و objCookie = Nothing و
وResponse.Cookies("strKeyCode").Expires = DateTime.Now.AddYears(-30)
لطفا کمک کنیدددددددددددددد.
با تشکر