Function RemoveAllCookies(oCookies)
   Dim oCookie, iNumberDeleted   iNumberDeleted = 0   While oCookies.Count > 0
      Call oCookies.Remove(1) 
      iNumberDeleted = iNumberDeleted + 1
   Wend
   
   RemoveAllCookies= iNumberDeleted
End Function

解决方案 »

  1.   

    If you want to delete the cookie on the client machine, do not use Response.Cookies.Remove("MyCookie") which simply tells the cookie not to overwrite the client's cookie (see below for a more detailed explanation), use Response.Cookies["MyCookie"].Expires = DateTime.MinValue or even = DateTime.Now. This will tell the client to overwrite the current cookie with an expired cookie and will never send it back to the server.
    详细信息请参考http://www.codeproject.com/aspnet/AspNetCookies.asp,
    贴主,再开个贴给分吧:)