Hi, I need a way to use cookies in the default web browser in vb.net.
I log in to a secure web site with a http web request, then use the response to set the web browser document text.
That all works, but then when I try to use the web browser to navigate around the site, it says that cookies must be enabled?Code:'Login to web page Dim login As HttpWebRequest = DirectCast(WebRequest.Create("MY SITE HERE"), HttpWebRequest) login.CookieContainer = LoadingScreen.LoginCookie Dim loginresponse As HttpWebResponse = DirectCast(login.GetResponse, HttpWebResponse) LoadingScreen.LoginCookie.Add(loginresponse.Cookies) 'Navigate to location Dim filepageread As New StreamReader(loginresponse.GetResponseStream) Dim pagedata As String = filepageread.ReadToEnd() WebBrowser1.DocumentText = pagedata
Does anyone have any ideas


Reply With Quote