Page 1 of 1

Is there a way to capture session_start errors

Posted: Thu Feb 21, 2008 8:12 am
by yacahuma
I just got an error where there was not space in the hd to write a session. Is there anyway to capture this error so that my application dont die horribly?

Thank you

Re: Is there a way to capture session_start errors

Posted: Thu Feb 21, 2008 8:28 am
by Zoxive
yacahuma wrote:I just got an error where there was not space in the hd to write a session. Is there anyway to capture this error so that my application dont die horribly?

Thank you
Well if your Site uses sessions, then what's the point if there is no space to save that session on the server? You lose all that functionality.

Re: Is there a way to capture session_start errors

Posted: Thu Feb 21, 2008 10:07 am
by yacahuma
is important for the login. That way I can show a "Site is unavailable" message. Or something like that. I found something in php.net about using

Code: Select all

 
function session_started(){
    if(isset($_SESSION)){ return true; }else{ return false; }
}
 
did not have chance to try it since the fix the problem