How do check if a PHP session is empty?

后端 未结 8 1132
無奈伤痛
無奈伤痛 2020-12-02 15:50

Is this bad practice?

if ($_SESSION[\'something\'] == \'\')
{
    echo \'the session is empty\';
}

Is there a way to check if its empty or

8条回答
提交回复
热议问题