Page 1 of 1
Can I access session cookie from ProfoundUI app?
Posted: Thu Oct 28, 2010 11:50 am
by Bryan641
I'm looking at ways to integrate ProfoundUI applications into our existing internal website and I'd like to be able to share session variables, which I could deal with if I could retrieve a session cookie from within my ProfoundUI application. Is there a way to do this? I've tried retrieving HTTP_COOKIE, but apparently my application is isolated from the CGI environment, as I'm getting *null returned from my call to getenv().
Any other ideas/options on how to do this, or is it not going to be possible?
--Bryan
Re: Can I access session cookie from ProfoundUI app?
Posted: Fri Oct 29, 2010 4:36 pm
by Alex
One idea is to use JavaScript to retrieve the cookies.
Re: Can I access session cookie from ProfoundUI app?
Posted: Mon Nov 01, 2010 8:26 am
by Bryan641
I was hoping to use our existing application authorization logic, but I need to know how the user has logged in to our existing site to determine if they are authorized to run the application. I need this information "before" I put out the screen.
Re: Can I access session cookie from ProfoundUI app?
Posted: Tue Nov 02, 2010 10:53 am
by David
In order for the browser to send cookies from the existing web application to the Profound UI application, the browser will have to see the 2 applications as being from the same "site".
This means either running them from the same http server instance, or setting up the existing server to call the Profound UI session controller using ProxyPass directives in the configuration.
If not set up in either of those ways, your browser will simply not send the session cookies on the request to Profound UI and there will be no possible way to read them in the application.
If you are set up this way, there is the additional problem that the HTTP_COOKIE environment variable would only be set in the session controller (CGI) program and not available in your application's job, which is not a CGI job.
To solve this, we will be making the HTTP_COOKIE environment variable available in the application's job starting with our next release, 2.1.7.
Re: Can I access session cookie from ProfoundUI app?
Posted: Tue Nov 02, 2010 4:55 pm
by Bryan641
To solve this, we will be making the HTTP_COOKIE environment variable available in the application's job starting with our next release, 2.1.7.
Excellent!
--Bryan