Wednesday, June 3, 2009

Read Cookies Thru VB.NET

Following code read & display all the cookies and its values in Listbox1 control

Dim cookieCols As New HttpCookieCollection

cookieCols = Request.Cookies

Dim str As String

For Each str In cookieCols

ListBox1.Items.Add("Cookie: " + str)

ListBox1.Items.Add("Value:" & _



Hope it Helps!

No comments:

Post a Comment