A
Adrian
Hi
How do I read and write a cookie in VB dotnet in Vb 6 I did so:
bRet1 = InternetGetCookie("http://xxxx/xxxx.htm", "user", sCookieVal1,
255)
bRet1 = InternetSetCookie("http://xxxx/xxxx.htm", "user", txtUserName.Text &
"; expires = " & Format$(DateAdd("y", 10, Now()), "ddd, dd-mmm-yyyy 00:00:00
") & "GMT")
bRet2 = InternetSetCookie("http://xxxx/xxxx.htm", "Password",
txtPassword.Text & "; expires = " & Format$(DateAdd("y", 10, Now()), "ddd,
dd-mmm-yyyy 00:00:00 ") & "GMT")
If bRet = False Then
Debug.Print "Failed write"
End If
I guess I need to use system.net.CookieCollection but don't know how to go
about it
thanks
How do I read and write a cookie in VB dotnet in Vb 6 I did so:
bRet1 = InternetGetCookie("http://xxxx/xxxx.htm", "user", sCookieVal1,
255)
bRet1 = InternetSetCookie("http://xxxx/xxxx.htm", "user", txtUserName.Text &
"; expires = " & Format$(DateAdd("y", 10, Now()), "ddd, dd-mmm-yyyy 00:00:00
") & "GMT")
bRet2 = InternetSetCookie("http://xxxx/xxxx.htm", "Password",
txtPassword.Text & "; expires = " & Format$(DateAdd("y", 10, Now()), "ddd,
dd-mmm-yyyy 00:00:00 ") & "GMT")
If bRet = False Then
Debug.Print "Failed write"
End If
I guess I need to use system.net.CookieCollection but don't know how to go
about it

thanks