check if session variable exists php
snippet in php

check if session variable exists php

user8941

if (isset($_SESSION['errors']))
{
    //Do stuff
}