I am working on a project, works fine on my local machine and on my test live server. But when uploaded to my client, the session is not working. here is just the basic implementation:
# I have set the folder for my cache which is writable
$f3->set('CACHE','folder=' . APP_PATH . 'cache/');
# instantiated my cache somewhere in the base controller
$sessionCache = \Cache::instance();// Session cache
$sess = new \Session(NULL,NULL,$sessionCache);
$f3->CSRF = $sess->csrf();
# then on my path controller instantiated a token and the session
$f3->set("csrftoken", $f3->CSRF);
$f3->set("SESSION.csrf", $f3->CSRF);
the problem on the hostgator server, there is no value on "SESSION.csrf" and checking the session_id(), there is none but there is a token generated from $sess->csrf().. what could be the problem here? I have updated to the latest fatfree and also the cache folder is writable. Thanks in advance