The stacktrace is as follows:
13 Whoops\Exception\ErrorException
…/vendor/bcosca/fatfree-core/base.php442
12 session_destroy
…/vendor/bcosca/fatfree-core/base.php442
11 Base clear
…/web/index.php193
10 CCWA\{closure}
…/vendor/bcosca/fatfree-core/base.php1787
9 Base call
…/vendor/bcosca/fatfree-core/db/sql/session.php72
8 DB\SQL\Session read
[internal]0
7 session_start
…/vendor/bcosca/fatfree-core/base.php259
6 Base ref
…/vendor/bcosca/fatfree-core/base.php307
5 Base exists
…/app/lib/CCWA/View/Main.php16
4 CCWA\View\Main __construct
…/app/lib/CCWA/Controller/Base.php25
3 CCWA\Controller\Base beforeroute
…/vendor/bcosca/fatfree-core/base.php1784
2 Base call
…/vendor/bcosca/fatfree-core/base.php1609
1 Base run
…/web/index.php199
0 CCWA\boot
…/web/index.php203
So it seems the code is doing the destroy, while still inside the session-read. PHP 7.1.5 it seems doesn't like that.
Removing my own onsuspect handler to let the original F3 execute, gives me a similar error:
session_commit(): Cannot call session save handler in a recursive manner
I can live without that feature. Without the onsuspect feature. I could potentially implement this manually as part of the authorize() function.
This way then I am not inside any sessionhandler and can invalidate it just fine.
What do you think?
Cheers
Thomas