Unable to delete cookies

bungpeng

Senior Contributor
Joined
Sep 10, 2002
Messages
906
Location
Malaysia
The code is simple and it work fine in my development machine.
But when I upload to hosting server,
then unable to clear the cookies.

Code:
Dim obj As HttpCookie = Request.Cookies("aaa")

If Not obj Is Nothing Then
   obj.Expires = DateTime.Now.AddDays(-7)
   Response.Cookies.Add(obj)
End If

Any posibility of it?
I really can't understand. Will the OS setting affect it?
 
Back
Top