Session data getting wiped out randomly
-
In my web application I have noticed the session data getting wiped out randomly/intermittently. When this happens there is a PHP warning msg: ‘Warning: session_start(): Failed to decode session object. Session has been destroyed in ….’.
I’m wondering this issue could be connected to this plugin. Any ideas?I’m using latest version of WP (5.9.2) and WordPress Native PHP Sessions (1.2.4).
In my code I check session id and initiate a session if there is none:
public function start_session() { if (!session_id()) { session_start(); } }
This is triggered by the init hook.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Session data getting wiped out randomly’ is closed to new replies.