src/Core/LTIX.php
public static function wrapped_session_flush(&$session_object)
    {
        global $TSUGI_SESSION_OBJECT;
        if ( $session_object === null && isset($TSUGI_SESSION_OBJECT) ) $session_object = $TSUGI_SESSION_OBJECT;
        if ( is_object($session_object) ) {
            $session_object->flush();
            return;
        }
        if ( is_array($session_object) ) {
            foreach($session_object as $k => $v ) {
                unset($session_object[$k]);
            }
            for ($i = 0; $i < count($session_object); $i++) {
                unset($session_object[$i]);
            }
        }
        session_unset();
    }
public static function wrapped_session_flush(&$session_object)
    {
        global $TSUGI_SESSION_OBJECT;
        if ( $session_object === null && isset($TSUGI_SESSION_OBJECT) ) $session_object = $TSUGI_SESSION_OBJECT;
        if ( is_object($session_object) ) {
            $session_object->flush();
            return;
        }
        if ( is_array($session_object) ) {
            foreach($session_object as $k => $v ) {
                unset($session_object[$k]);
            }
            for ($i = 0; $i < count($session_object); $i++) {
                unset($session_object[$i]);
            }
        }
        session_unset();
    }
public static function wrapped_session_flush ( & $ session_object ) { global $ TSUGI_SESSION_OBJECT ; if ( $ session_object === null && isset ( $ TSUGI_SESSION_OBJECT ) ) $ session_object = $ TSUGI_SESSION_OBJECT ; if ( is_object ( $ session_object ) ) { $ session_object -> flush ( ) ; return ; } if ( is_array ( $ session_object ) ) { foreach ( $ session_object as $ k => $ v ) { unset ( $ session_object [ $ k ] ) ; } for ( $ i = 0 ; $ i < count ( $ session_object ) ; $ i ++ ) { unset ( $ session_object [ $ i ] ) ; } } session_unset ( ) ; }
Wrap flushing the session
Wrap flushing the session