$_SESSION variables being lost

A place for users and developers of the Xataface to discuss and receive support.

$_SESSION variables being lost

Postby andperry » Wed Feb 20, 2013 10:18 am

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?


Posts: 57
Joined: Wed Feb 18, 2009 9:20 am
Location: Wirral, UK

Re: $_SESSION variables being lost

Postby shannah » Wed Feb 20, 2013 10:44 am

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;

Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 2 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved