PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
function check_session(){
if ($_SESSION['islogged'] != true){
die("not logged in!!");
}
what about this... i want to use this function to check user authentication... should i pass the variable by parameter or should i just get it from the $_SESSION array?
Or should i right a little script with this code and include it whenever i want?