My intraweb 12 application is part of a large suite of applications.
One issue I am dealing with is an OpenWindow call to start another application (not Intraweb).
The way it is supposed to work is that my intraweb application has to request a “login token†from a web service. This “login token†can then be used to login to the application I am trying to start.
The login token must be passed to the new application as a cookie. The new application is not in the same domain as my intraweb application.
I am not familiar with how cookies work but I guess I need to create a cookie with the login token for the domain the new application belongs to.
I have written the code to get the “login token†but I don’t know how to create the cookie for the new application.
How can I do that?
/thanks
Vote for best question.
Score: 0
# Vote: 0
Date Posted: 15-Jan-2015, at 1:08 AM EST
From: Richard Bibby
Re: Creating a cookie before calling a third party applicati
> {quote:title=Richard Bibby wrote:}{quote}
> Thanks for the feedback.
>
> Could i build my own http request, add the cookie and open the uri in a new window by using Javascript?
If you really want to use cookies for it, maybe you should read this: http://subinsb.com/set-same-cookie-on-different-domains
Vote for best answer.
Score: 0
# Vote: 0
Date Posted: 15-Jan-2015, at 10:08 AM EST
From: Alexandre Machado
Re: Creating a cookie before calling a third party applicati
> {quote:title=Richard Bibby wrote:}{quote}
> My intraweb 12 application is part of a large suite of applications.
>
> One issue I am dealing with is an OpenWindow call to start another application (not Intraweb).
>
> The way it is supposed to work is that my intraweb application has to request a “login token†from a web service. This “login token†can then be used to login to the application I am trying to start.
>
> The login token must be passed to the new application as a cookie. The new application is not in the same domain as my intraweb application.
>
> I am not familiar with how cookies work but I guess I need to create a cookie with the login token for the domain the new application belongs to.
>
> I have written the code to get the “login token†but I don’t know how to create the cookie for the new application.
>
> How can I do that?
>
> /thanks
Hi Richard,
please take a look at this SO thread: http://stackoverflow.com/questions/6761415/how-to-set-a-cookie-for-another-domain
This may give you more information about this subject. But in short, you should send data to another domain as a field or a parameter, depending on the method you use to call it (POST or GET)...
Best regards
Vote for best answer.
Score: 0
# Vote: 0
Date Posted: 15-Jan-2015, at 5:19 AM EST
From: Alexandre Machado
Re: Creating a cookie before calling a third party applicati
This could be done using PHP, Curl or another scripting language with some depth. PHP is probably your best bet since it can easily be injected into a page. You can get an idea of what would be involved by searching "php cross domain cookies". To get a more general idea of other methods search "passing cookies between domains".
Many times you can pass the same information as parameters. Have you view the page source? You might be able to read what the submit button does by looking at the source. If it's a clear URL with the cookie and credentials, you could construct the URL before calling the new window.