JosephLenton / PHP-Error

Better error reporting for PHP, and prettier too!
1.35k stars 151 forks source link

session_start notice #6

Closed Geczy closed 12 years ago

Geczy commented 12 years ago
<?php

// load the session, if it's there
if (isset($_COOKIE[session_name()])) {
    session_start();
}

Suggest an additional if check eg

<?php

// load the session, if it's there
if (isset($_COOKIE[session_name()]) && empty($_SESSION)) {
    session_start();
}
JosephLenton commented 12 years ago

This is now in, thanks for these issues btw!