Menu

#130 session had already been started

open
nobody
None
5
2003-10-05
2003-10-05
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


Log in to post a comment.