Welcome to the new platform of Programmers 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 it's 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
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)
However, when I access this WebService through code the cookie is never set.
Does anyone have any help for me???