how secure is php's die()? (with & without output buffering)

Posted by Haroldo on Stack Overflow See other posts from Stack Overflow or by Haroldo
Published on 2010-05-11T08:32:16Z Indexed on 2010/05/11 8:34 UTC
Read the original article Hit count: 62

Filed under:

Does die() successfully terminate the php script at that point or only with output bufferring?

would it be secure to do a:

if(!isset($_SESSION['logged_in'])){
    die('you do not have permission to access this page.');
}

© Stack Overflow or respective owner

Related posts about php