Answers for "store a variable in session and echo that variable on a page wordpress"

PHP
-1

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

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

add_action('init', 'register_my_session');
Posted by: Guest on December-10-2020

Code answers related to "store a variable in session and echo that variable on a page wordpress"

Browse Popular Code Answers by Language