Posted By

blantonious on 04/22/14


Tagged

login redirect


Versions (?)

Login redirect


 / Published in: PHP
 

If not logged in redirect to login page

  1. function confirm_logged_in() {
  2. if (!logged_in()) {
  3. redirect_to("login.php");
  4. }
  5. }

Report this snippet  

You need to login to post a comment.