cookies in asp.net

S

Stimp

hi all,

I'm creating a cookie in the http context as follows:

Dim objCookie As HttpCookie = New HttpCookie("UserDetails")
objCookie.Values.Add("UserName", rRow("UserName"))

Response.Cookies.Add(objCookie)


When I try to delete the cookie using:

Response.Cookies.Remove("UserDetails")


it doesn't remove the cookie from the browser cache.

Is this the correct syntax for creation and removal of asp.net cookies?

Thanks,
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Cookies Count 2
where are cookies stored ? 5
Cookies C# 3
Cookies during error handling 1
Cookies 1
Asp.net 2.0 - Cookies 2
converting cookie values 2
Cookies 1

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top