• Resolved DevelopMen

    (@developmen)


    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!

    https://ww.wp.xz.cn/plugins/memphis-documents-library/

Viewing 1 replies (of 1 total)
  • Plugin Author bhaldie

    (@bhaldie)

    thanks for the info ill test this methodology, on issue I’ve looking at is the closing of the session. If I am testing for a session already open then closing it would create problems.

Viewing 1 replies (of 1 total)

The topic ‘Session started and locked without checking’ is closed to new replies.