Article View: borland.public.cppbuilder.internet.web
Article #112Re: TCppWebBrowser cookie problem
From: Mike Ruskai
Date: Sat, 31 May 2008 05:43
Date: Sat, 31 May 2008 05:43
26 lines
2020 bytes
2020 bytes
On or about Fri, 30 May 2008 15:25:59 -0700 did "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> dribble thusly: > >"Mike Ruskai" <BUTthannydI@DONTearthlinkLIKE.netSPAM> wrote in message >news:qir044h4vduuvh2fni5hs81sr50aabjqlt@4ax.com... > >> Note, in particular, the fact that it's specifying a cookie name >> and value. That's the session cookie, required to authenticate >> the browser. >> >> The window is opened, but that window issues this request: ><snip> >> Note that absence of a cookie, which prevents the content from >> being retrieved. > >I am guessing that you are not using the TCppWebBrowser::OnNewWindow2 event >to create a new TCppWebBrowser instance, is that right? If you are not, >then the browser creates the new window in a separate process. If the >cookie is a temporary session cookie, that process would not have access to >it. I hadn't even an inkling that such handling was necessary. I just did a quick test, assigning the interface of a second browser control in the event, and it works. Now I just have to create a popup browser form and add a bunch of code to my wrapper class.
Technical Details
Message-ID:
<d8p144ptiq3maq3uioofofl72volit91iv@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<qir044h4vduuvh2fni5hs81sr50aabjqlt@4ax.com> <48407f26$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,ac14937141a5116d X-Google-Attributes: gidfeeec,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Mike Ruskai <BUTthannydI@DONTearthlinkLIKE.netSPAM> Newsgroups: borland.public.cppbuilder.internet.web Subject: Re: TCppWebBrowser cookie problem Date: Sat, 31 May 2008 01:43:20 -0400 Message-ID: <d8p144ptiq3maq3uioofofl72volit91iv@4ax.com> References: <qir044h4vduuvh2fni5hs81sr50aabjqlt@4ax.com> <48407f26$1@newsgroups.borland.com> X-Newsreader: Forte Agent 4.2/32.1118 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.41.246.29 X-Trace: newsgroups.borland.com 1212212599 65.41.246.29 (30 May 2008 22:43:19 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail