HELP - Cookies from WebService

This may be impossible....I need help Creating cookies from a webservice. When I run the following code by typing in the URL and envoking the webservice, everything works like a champ.
Public Function SetCookie(ByVal sName As String, ByVal sValue As String)
Dim objNewCookie As New HttpCookie(sName)
Dim now As DateTime = DateTime.Now
objNewCookie.Value = sValue.ToString
objNewCookie.Expires = now.AddYears(4)
End Function
However, when I access this WebService through code the cookie is never set.
Does anyone have any help for me???
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!