Database session - "Call to undefined method App\Session\Drivers\DatabaseSessionDriver::start()"
As per documentation, i am trying to implement a database driver due to issues with WPEngine, but i get the following error:
Deprecation notices related:
Configuration i set as shown below:
app.php
SessionProvider.php
DatabaseSessionProvider.php
session.php
Already tested troubleshoot mode (all plugins disabled) but the issue remains. Any help debugging the issue is welcome.
Hi @tcunhagwm I've not had time to dig deep into this, but I think the warnings you are seeing might be because your DatabaseSessionDriver.php file needs to have return types and typed parameters. For example:
public function read ($session_id) {}
should become:
public function read (string $session_id): string|false {}
This is something we are missing in the documentation - I will make a note to address it.