• Hi I have this notify poping up, i check and found out by deactivating that unyson is he problem..

    Wat do i do?

    <?php if ( ! defined( 'FW' ) ) {
    
    die( 'Forbidden' );
    
    }
    
    /**
    
    * Work with $_SESSION
    
    *
    
    * Advantages: Do not session_start() on every refresh, but only when it is accessed
    
    */
    
    class FW_Session {
    
    private static function start_session() {
    
    if ( !session_id() ) {
    
    session_start( [
    
    'read_and_close' => true,
    
    ] );
    
    }
    
    public static function get( $key, $default_value = null ) {
    
    if ( ! apply_filters( 'fw_use_sessions', true ) ) {
    
    return array();
    
    }
    
    self::start_session();
    
    return fw_akg( $key, $_SESSION, $default_value );
    
    }
    
    public static function set( $key, $value ) {
    
    self::start_session();
    
    fw_aks( $key, $value, $_SESSION );
    
    }
    
    public static function del( $key ) {
    
    self::start_session();
    
    fw_aku( $key, $_SESSION );
    
    }
    
    }

    Its in the files > Helpers> class-fw-session.php.

    Here is more info what if found: https://github.com/ThemeFuse/Unyson/pull/4052/commits/da578e754381632b27289be3d92c1a3cc7f1d14f

    Anyone solution?

  • The topic ‘unyson active PHP seasson’ is closed to new replies.