TWebBrowser session parameters

Hi!

Im using a TWebBrowser component with D6 Enterprise.
I use it to log onto an email account. The problem is that when i try to open any link in a new window while im logged, the new window says: ure not logged in and i have to log in again from the start. It seems that the session parameters are somehow lost or not transfered between windows. Does any one know a solution 4 this problem? Some code would be nice. ;)
Thx.
datalabddAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

geobulCommented:
Hi,

What do you mean by 'to open any link in a new window'? Another WebBrowser.Navigate, current WebBrowser.Navigate(new link) or something else?

Regards, Geo
0
datalabddAuthor Commented:
I meant it so:

I have an email opened in TWebBrowser.
Now i right click on link contacts and choose open in a new window.
When this new window is opened, the session parameters are lost and i have to login again from the start.
If i do the same with internet explorer, Contacts are opened correctly in new window.
0
geobulCommented:
So, you're opening a new instance of Internet Explorer (or whatever your default browser is) with that link. You are no longer inside your WebBrowser or even inside your application. I don't think this could be done.
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

datalabddAuthor Commented:
Hmmmm ... good point ...
Its written in the help file that WebBrowser is some sort of  wrapper 4 MS internet explorer. In my case Default browser is FireFox, but new window opens IE. So there must be some connection between WebBrowser and the new window that is opened. I still think its possible to achieve this.  But i might be wrong.
0
MolandoCommented:
go to:
http://www.euromind.com/iedelphi/

use the EmbeddedWB.
Delphi's TWebbrowser is rather limited.

both of them are based on ShDocVW type libraries (internet explorer).

I have never had any problems with having to relogin with EmbededWB (the program I made was running on around 400 internet terminals for a little over 4 years)

I think there is also a link on the page on how to spawn multiple browsers.
0
geobulCommented:
Molando, the problem is not in the WebBrowser itself but when opening a link from there using right-click popup menu item 'Open in New Window' which actually opens IE passing the link as a parameter. There is no need for re-logging as long as you're navigating inside the WebBrowser component.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MolandoCommented:
You could always block the popup menu, or replace it with a popup menu of your own.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.