I've got a logout script that kills all my session data then starts a new session to hold a message for the logged-out user when he's redirected to the login page. I'm getting the following Fatal error (Latest release of RedHat Linux/Apache/PHP):
Fatal error: session_start(): Failed to initialize storage module. in /home/minorgod/public_html/online-courses-test/logout.php on line 17
Here's the suspect code...I'm using my own session handlers with MySQL also.....
$_SESSION=NULL;
setcookie (session_name(), '', (time () - 2592000), '/', '', 0);
session_destroy();
//session_regenerate_id();
session_start();
$_SESSION['message']="You have been logged out.";
The above code caused no errors until I added the session_start() and now it gives me an error.