I am totally sure I have not called any fSession methods before calling setLength().
I get this error: Fatal error: Uncaught exception 'fProgrammerException' with message 'fSession::setLength() must be called before any of fSession::add(), fSession::clear(), fSession::enablePersistence(), fSession::get(), fSession::open(), fSession::set() or session_start()'
class SomeClass {
public static function setupAuthorization() {
fSession::setLength('30 minutes', '1 week');
//fSession::setPath('/writable-dir');
fSession::enablePersistence();
fAuthorization::setLoginPage(Sutra::getConfig()->getBaseUrl().'login');
fAuthorization::setAuthLevels(array('admin' => 100, 'user' => 50, 'guest' => 25));
}
public static function render() {
self::getDb();
self::getConfig();
self::getPage();
self::setupAuthorization();
}
}
NONE of the other static functions functions call any fSession methods.