Search this blog

Wednesday, June 3, 2009

Write Cookie thru VB.NET

Following VB.NET code, helps you to overrite or write a value of a cookie

Dim cookie As HttpCookie = New HttpCookie("UID")

cookie.Value = "myid"

cookie.Expires = #10/12/2005#

Response.Cookies.Add(cookie)

cookie = New HttpCookie("PASS")

cookie.Value = "mypass"

cookie.Expires = #10/12/2005#

Response.Cookies.Add(cookie)

No comments:

Post a Comment