Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#130 session had already been started

open
nobody
None
5
2003-10-05
2003-10-05
Sven Eichler
No

file: session4.inc
line: 171

As of PHP 4.3.3, calling session_start() while the session
has already been started will result in an error of level
E_NOTICE.

My simple solution:

if (session_id() == '') {
$ok = session_start();
} else { $ok = ''; }
$this->id = session_id();

Discussion