This topic is locked

Passing Session Variable to Another Application

6/10/2010 8:01:25 AM
PHPRunner General questions
M
Mandy author

Hi.

I have a phprunner project uploaded to domain.com/phprunner

I have another php application uploaded to domain.com/phpapp2
How do I pass the user ID (ie. $_SESSION["UserID"] ) across form phprunner to phpapp2? I know this is something to do with the "include" file, but

  1. have no idea what to edit

    and
  2. am worried about security issues if I make a b**ls up of it!
    Comments and advice much appreciated.

    Regards,

    Mand

J
Jane 6/10/2010

Hi,
you don't need to pass $_SESSION["UserID"] value. This variable is the same in both applications.

Just make sure security settings are the same in these two projects.

M
Mandy author 6/10/2010



Hi,
you don't need to pass $_SESSION["UserID"] value. This variable is the same in both applications.

Just make sure security settings are the same in these two projects.


Hi Jane.

Thanks for your help. I probably didn't explain it well - the second php app (phpapp2) is NOT a phprunner project.
Mand

Sergey Kornilov admin 6/10/2010

Mand,
if both PHP applications reside on the same server PHP sessions will be shared you can simply access $_SESSION["UserID"] in your second app.