Page 1 of 1

$_SESSION variables being lost

PostPosted: Wed Feb 20, 2013 10:18 am
by andperry
This problem is introduced on upgrading Xataface from version 1.3.2 to 1.3.3.

An index.php file has custom code both before and after the main Xataface application call. Any $_SESSION variables set before calling the Xataface application are now no longer being recognised in the code that follows the Xataface application call. What has changed to cause this to happen and is there any way round it?

Thanks,

Andrew.

Re: $_SESSION variables being lost

PostPosted: Wed Feb 20, 2013 10:44 am
by shannah
In order to limit the number of sessions created, Xataface started to wait until someone tried to log in before starting a session. You can turn on auto sessions by setting $app->autoSession = true;
e.g. In your index.php file:
Code: Select all
$app = df_init(__FILE__, 'xataface');
$app->autoSession = true;
$app->display();


-Steve