Announcement

Collapse
No announcement yet.

Session Variables for External Scripts

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    Originally posted by catalyst View Post
    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
    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.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Originally posted by aducom View Post
      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.
      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.

      Comment


      • #4
        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

        Comment


        • #5
          Originally posted by jsbinca View Post
          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
          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().

          Comment

          Working...
          X