• Hi Guys

    I am trying to destroy the seeions but it does not seem to work.

    I have tried both of the following, and neither work. Any advice please 🙂

    $wp_session = WP_Session::get_instance();
    if (isset($wp_session['sessionName'])) {
    unset($wp_session['sessionName'];
    }

    and

    $wp_session = WP_Session::get_instance();
    if (isset($wp_session['sessionName'])) {
    wp_session_unset['sessionName'];
    }

    https://wordpress.org/plugins/wp-session-manager/

Viewing 1 replies (of 1 total)
  • You missed to complete bracket. You below code and try again.

    $wp_session = WP_Session::get_instance();
    if (isset($wp_session['sessionName'])) {
    unset($wp_session['sessionName']);
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Destroy Session’ is closed to new replies.