Community & Support

Pass variable from an external script to Drupal

Hi,

I made a script to screen who is going to be able to reach my drupal site. I want to pass a variable from this script to drupal so i can check this var to see if the person has passed the screening or not.

I can,t seem to be able to use $_SESSION, my var doesn't exist anymore when I'm on Drupal site even if I include bootstrap.inc in my external script.

I certainly don't want to use the get method because it just renders my screening useless.

What's wrong with $_SESSION ? how can I use it ? are there any other way to safely pass a var from my script to Drupal ?

Thank you,
Sohnyrin

Comments

Code will help you

Do you have some code to better explain the problem. Code is a lot easier to read for software developers.

But on initial glance, does your screening script involve a form? If yes, then why not have the form be handled by drupal itself through the Form API? What exactly is the initial script?