HELP - Cookies from WebService - Programmers Heaven

Howdy, Stranger!

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


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

HELP - Cookies from WebService

kevlittkevlitt Posts: 1Member
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.