[RSS Feed/News] Using session data?

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
From my controller, I'm trying to save a session key but that's throwing an error:
Instances of XF\Db\AbstractAdapter cannot be serialized or unserialized in src\XF\Db\AbstractAdapter.php on line 680
Click to expand...

My code:
PHP:

Code:
$session = $this->session();
$session->set('foo', 'bar');

If I comment out the $session->set() statement, then the error is gone. What am I missing here?

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom