Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!empty($_SESSION['pseudo']))
- {
- $req = $bdd->prepare('SELECT COUNT(*) AS result_session FROM membres WHERE session = :session');
- $req->bindValue('session', $_SESSION['session']);
- $req->execute();
- $result_session = $req->fetch();
- $req->closeCursor();
- if($result_session['result_session'] == 0)
- {
- session_destroy();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment