Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2. session_start( );
  3. if (isset($_SESSION["userid"])) //userid replace with according to variable $_SESSION[xxx] at login page
  4. {
  5. session_destroy( );
  6. echo "You have successfully logged out.";
  7. } e
  8. lse
  9. echo " No session exists or session is expired. Please log in again";
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement