I have used the following article to maintain sessions in a web service :
using the following code I would like to read the value (SessionID) that is set in the cookie returned in the web service result.
Private Cookies As System.Net.CookieContainer
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim proxy As New localhost.Service1()
Dim ret As Integer
' Set the Cookie Container on the proxy
If Cookies Is Nothing Then
Cookies = New System.Net.CookieContainer
proxy.CookieContainer = Cookies
ret = proxy.IncrementSessionCoun
Label1.Text = "Result: " & CStr(ret)
after the web service comes back I can see that Cookies.Count gets set to 1 but I can't find a way to read the cookie value.