Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Cookies/Session For PHP integration
Cookies/Session For PHP integration [message #242840] Fri, 15 June 2007 03:06 Go to next message
Jim Jenkins is currently offline Jim JenkinsFriend
Messages: 6
Registered: July 2009
Junior Member
I'm working on a PHP application that uses BIRT for it's reporting
features. The problem is making sure that the reports only run for user
who authenticated in the PHP application. I had looking at passing
parameters in the URL that loads the report but I'm wondering if there
is a way to work with cookies as an alternative.

*Can I load cookies or read session data create by my application?
*Better yet, how do I read this information in BIRT?

My research leads me to believe that I create a script in the
beforeFactory or initialize events. How to feed cookie/session values
into parameters?

//This appears to be a start now for specific cookies
var request = reportContext.getHttpServletRequest();
Re: Cookies/Session For PHP integration [message #242850 is a reply to message #242840] Fri, 15 June 2007 03:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Jim,

Take a look at this wiki page.
http://wiki.eclipse.org/index.php/Retrieve_Session_informati on_in_Script_%28BIRT%29

Jason

Jim wrote:
> I'm working on a PHP application that uses BIRT for it's reporting
> features. The problem is making sure that the reports only run for user
> who authenticated in the PHP application. I had looking at passing
> parameters in the URL that loads the report but I'm wondering if there
> is a way to work with cookies as an alternative.
>
> *Can I load cookies or read session data create by my application?
> *Better yet, how do I read this information in BIRT?
>
> My research leads me to believe that I create a script in the
> beforeFactory or initialize events. How to feed cookie/session values
> into parameters?
>
> //This appears to be a start now for specific cookies
> var request = reportContext.getHttpServletRequest();
>
Re: Cookies/Session For PHP integration [message #249755 is a reply to message #242850] Wed, 25 July 2007 15:48 Go to previous message
Eclipse UserFriend
Originally posted by: ian.munday.illumen.co.uk

Jim,

Did you get any where with this? I'm trying to do something very
similar to you, i.e. I have a PHP application which uses BIRT for
reporting and need to ensure reports only run for authenticated users.

Ian



Jason Weathersby wrote:
> Jim,
>
> Take a look at this wiki page.
> http://wiki.eclipse.org/index.php/Retrieve_Session_informati on_in_Script_%28BIRT%29
>
>
> Jason
>
> Jim wrote:
>> I'm working on a PHP application that uses BIRT for it's reporting
>> features. The problem is making sure that the reports only run for
>> user who authenticated in the PHP application. I had looking at
>> passing parameters in the URL that loads the report but I'm wondering
>> if there is a way to work with cookies as an alternative.
>>
>> *Can I load cookies or read session data create by my application?
>> *Better yet, how do I read this information in BIRT?
>>
>> My research leads me to believe that I create a script in the
>> beforeFactory or initialize events. How to feed cookie/session values
>> into parameters?
>>
>> //This appears to be a start now for specific cookies
>> var request = reportContext.getHttpServletRequest();
>>
Previous Topic:Changing the WebViewer's default settings
Next Topic:Data filtering
Goto Forum:
  


Current Time: Sun Sep 08 03:28:20 GMT 2024

Powered by FUDForum. Page generated in 0.03369 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top