Support » Plugin: Paid Memberships Pro » Session already sent

Viewing 2 replies - 1 through 2 (of 2 total)
  • Austin Passy

    (@austyfrosty)

    Recommended way for versions of PHP >= 5.4.0

    if (session_status() == PHP_SESSION_NONE) {
            session_start();
        }

    Source: http://www.php.net/manual/en/function.session-status.php

    For versions of PHP < 5.4.0

    if(session_id() == '') {
            session_start();
        }

    Plugin Author messica

    (@jessica-o)

    Thanks for that, we’ll actually be updating our code ASAP to detect the PHP version and deliver the right code accordingly. Marking this resolved.

    Thanks,
    Jess

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Session already sent’ is closed to new replies.