Skip to content

Commit d15b9b5

Browse files
Checking to see if sessions are already set
1 parent 4d3fe5f commit d15b9b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/php_error.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,7 @@ public function reportError( $code, $message, $errLine, $errFile, $ex=null ) {
23962396

23972397
// load the session, if it's there
23982398

2399-
if ( isset($_COOKIE[session_name()]) && session_id() !== '' ) {
2399+
if ( isset($_COOKIE[session_name()]) && session_id() !== '' && !isset($_SESSION)) {
24002400
session_start();
24012401
}
24022402

0 commit comments

Comments
 (0)