Session Variables for External Scripts

Hello,

I’ve created an external php program that generates an order summary based off information in the database. I would like to limit visibility to certain fields based on the usr_login. Is there a way to pass this session information using scriptcase?

Can I access Scriptcase session variables through external applications?

-Thanks for any help

[QUOTE=catalyst;32413]Hello,

I’ve created an external php program that generates an order summary based off information in the database. I would like to limit visibility to certain fields based on the usr_login. Is there a way to pass this session information using scriptcase?

Can I access Scriptcase session variables through external applications?

-Thanks for any help[/QUOTE]

ad1: yes you can, but you need to pass the variables as get or post to the external application.
ad2: not directly, only the passed variables can be used.

An alternative might be to create a blank application in your project and add your external code to that. Then all works within SC.

[QUOTE=aducom;32416]ad1: yes you can, but you need to pass the variables as get or post to the external application.
ad2: not directly, only the passed variables can be used.

An alternative might be to create a blank application in your project and add your external code to that. Then all works within SC.[/QUOTE]

Right now I’m using a link on a grid application with the OnRecord event to open the application in another window (Which prevents post from working … no submit button). I like the idea of creating a blank application, but the external program generates a PDF and I don’t believe the code will work inside Scriptcase.

Using GET would work, but it doesn’t hide the information how I would like it to.

If you are just about Session variables, why not put a session_start() at the beginning of your script so it’s included in the session
and you have access to all session variables.

jsb

[QUOTE=jsbinca;32425]If you are just about Session variables, why not put a session_start() at the beginning of your script so it’s included in the session
and you have access to all session variables.

jsb[/QUOTE]

You are 100% correct. I actually solved this issue already by doing just that. I meant to update my forum post to indicate this. It was an oversight on my part by forgetting to use session_start().