Added session status function fallback for PHP < 5.4