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
Is there a way to capture session_start errors
Moderator: General Moderators
Re: Is there a way to capture session_start errors
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.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
Re: Is there a way to capture session_start errors
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
did not have chance to try it since the fix the problem
Code: Select all
function session_started(){
if(isset($_SESSION)){ return true; }else{ return false; }
}