add_action('init', 'cyb_session_start', 1); function cyb_session_start() { if( ! session_id() ) { session_start(); } }
if (!session_id()) { session_start(); }