Problem: Session variables disappearing.
I can place the echo statements as shown below in the EVENT (Add Page: Before Process) and verify that the session variables have been created. Both the $_SESSION["ItemID"] and the Test $_SESSION["XXX'] with display on screen.
When I run the same echo statements in the EVENT (Before Record Added) The test $_SESSION["XXX'] will display to the screen however the $_SESSION["ItemID"] will not.
EVENT (Add Page: Before Process)
$var1 = $_GET["a"]; //Gets the Item ID from the URL
$_SESSION["ItemID"]=$var1; // Creates SESSION VAR.
$_SESSION["XXX"]="XXX"; // Test SESSION VAR
echo($_SESSION["ItemID"]); //<<<<<< DISPLAYS TO SCREEN
echo($_SESSION["XXX"]); //<<<<<< DISPLAYS TO SCREEN
EVENT (Before Record Added)
echo($_SESSION["ItemID"]); //<<<<<< WILL NOT DISPLAY TO SCREEN
echo($_SESSION["XXX"]); //<<<<<< DISPLAYS TO SCREEN
This problem only occurs whenever I attempt to use any data that is not associated with the Logged User.