Posted By

stephcode on 12/23/10


Tagged

session logout


Versions (?)

If no active session, start new one


 / Published in: PHP
 

  1. <?php
  2. if (session_id() == "") session_start(); // if no active session we start a new one
  3. echo $_SESSION['user_logged'];
  4. ?>

Report this snippet  

You need to login to post a comment.