store a variable in session and echo that variable on a page wordpress

93

function register_my_session(){
    if( ! session_id() ) {
        session_start();
    }
}

add_action('init', 'register_my_session');

Comments

Submit
0 Comments