Kan ikke slette cookies
Hej, jeg har problem med at slette cookies,Jeg har slettet alle cookies gennem internet explorer (IE7),
jeg har slettet specifikt de cookies som jeg ville have slettet gennem et program der hedder Cookie Editor men når jeg Spørger på cookien i min kode er den aldrig nothing og den indeholder altid en verdi. min kode ser ud som følger:
'Show prices ex/inc VAT
Dim ShowPriceVATCookie As HttpCookie
If Request.Cookies("ShopShowPriceVAT") Is Nothing Then
ShowPriceVATRadioButtonList.SelectedValue = "inc" 'Default to inc if no cookie
ShowPriceVATCookie = New HttpCookie("ShopShowPriceVAT")
ShowPriceVATCookie.Expires = Now.AddYears(10)
ShowPriceVATCookie.Value = "inc"
'Save Cookie
Response.Cookies.Add(ShowPriceVATCookie)
Response.Redirect(Request.RawUrl.ToString)
Else
ShowPriceVATCookie = Request.Cookies("ShopShowPriceVAT")
Dim ShowPriceVAT As String = ShowPriceVATCookie.Value
If String.IsNullOrEmpty(ShowPriceVAT) Then
ShowPriceVATRadioButtonList.SelectedValue = "inc" 'Default to inc if no cookie
ShowPriceVATCookie = New HttpCookie("ShopShowPriceVAT")
ShowPriceVATCookie.Expires = Now.AddYears(10)
ShowPriceVATCookie.Value = "inc"
'Save Cookie
Response.Cookies.Add(ShowPriceVATCookie)
Response.Redirect(Request.RawUrl.ToString)
Else
If Not ShowPriceVAT = Nothing And ShowPriceVAT = "ex" Then
ShowPriceVATRadioButtonList.SelectedValue = "ex"
Else
ShowPriceVATRadioButtonList.SelectedValue = "inc"
End If
End If
End If
er der nogen derude der har en ide?