Session started and locked without checking
-
Hello,
Thanks for making this plugin. In the function
mdocs_nonce()
you always start the session and then close it for writing.
Since this function is always executed my other plugins can’t write to the session.I’m starting my session in functions.php as follows:
function register_my_session() { if ( ! session_id() ) { session_start(); } } add_action('init', 'register_my_session');
Should your function check if the session already exists and doesn’t get started twice? Is locking necessary or is there any workaround?
Thanks in advance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Session started and locked without checking’ is closed to new replies.