Gloorian

Untitled

Nov 2nd, 2011
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. if(!empty($_SESSION['pseudo']))
  2. {
  3. $req = $bdd->prepare('SELECT COUNT(*) AS result_session FROM membres WHERE session = :session');
  4. $req->bindValue('session', $_SESSION['session']);
  5. $req->execute();
  6. $result_session = $req->fetch();
  7. $req->closeCursor();
  8.  
  9.  
  10. if($result_session['result_session'] == 0)
  11. {
  12. session_destroy();
  13. }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment