This topic is locked

$_SESSION variables disappearing.

12/5/2008 7:53:27 PM
PHPRunner General questions
L
Lorenbond author

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.

J
Jane 12/8/2008

Hi,
It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.

L
Lorenbond author 12/9/2008

Jane, Thanks for your speedy reply.

I have found a work around for this issue and with so many other issues yet to resolve.

I'll enquire again if the need arises.

Again, thanks for your help.