update_sessions example


    protected function update_session( $verifier$session = null ) {
        $sessions = $this->get_sessions();

        if ( $session ) {
            $sessions[ $verifier ] = $session;
        } else {
            unset( $sessions[ $verifier ] );
        }

        $this->update_sessions( $sessions );
    }

    /** * Updates the user's sessions in the usermeta table. * * @since 4.0.0 * * @param array $sessions Sessions. */
    protected function update_sessions( $sessions ) {
        if ( $sessions ) {
            
Home | Imprint | This part of the site doesn't use cookies.