• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1122
  • Last Modified:

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.
0
datalabdd
Asked:
datalabdd
  • 3
  • 2
  • 2
  • +1
2 Solutions
 
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
MolandoCommented:
You could always block the popup menu, or replace it with a popup menu of your own.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now