G
Guest
i am trying to use this code:
to save a coockie on a localhost and it isnt working.
what am i doing wrong?
what if i put the prject on a temp server can i then write a coockie even if
i dont have a domain?
under which name will i see it in the Temporary Internet Files folder?
and should i use the above code for a new coockie and for an existing coocike?
or shouldi use somme diffrent code?
thnaks in advance
peleg
Code:
If (True = Request.Browser.Cookies) Then ' this works!
Dim testCookie As New HttpCookie("LastVisited")
testCookie.Values.Add("time is now", DateTime.Now.ToString)
testCookie.Expires = DateTime.Now.AddDays(20)
testCookie.Domain = "localhost"
Response.AppendCookie(testCookie)
end if
what am i doing wrong?
what if i put the prject on a temp server can i then write a coockie even if
i dont have a domain?
under which name will i see it in the Temporary Internet Files folder?
and should i use the above code for a new coockie and for an existing coocike?
or shouldi use somme diffrent code?
thnaks in advance
peleg