PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$_ENV variables are system environment variables. As far as I know, you can't define your own. What you should be doing is using $_SESSION variables. Note that every script that either writes to, or reads from $_SESSION variables MUST issue the php command:
session_start();
in the script before anything (even a blank line) is sent to the browser.