IE6 and cookie check

S

Steve Johnson

I've set IE 6.0 (in Windows XP) to block all cookies, yet
Response.Browser.Cookies. still returns True. Additionally, attempts to
write cookies are successful.

Here's a code snippet. Does anyone see an error? Something I'm missing?

Steve

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim cookMyTest As New HttpCookie("Life is grand")
If Request.Browser.Cookies = True Then
lblCookie.Text = "Cookies accepted"
cookMyTest.Expires = DateTime.Now.AddDays(5)
Response.Cookies.Add(cookMyTest)
Else
lblCookie.Text = "Cookies not accepted"
End If
End Sub
 

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

Cookie problem in VB.Net 4
Updating cookie 1
check for cookies 4
cookies.... 1
Trouble with a simple cookie 3
Wierd cookie error 1
cookie.domain bug?? 2
cookie textbox value problems 3

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top