wordpress page session condition code example
Example: 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');