Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 30th, 2011  |  syntax: None  |  size: 0.15 KB  |  views: 32  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. require_once("checklogin.php");
  3. $_SESSION['expiry'] = time() + 30 * 60;
  4.  
  5. if ($_SESSION['expiry'] < time()) {
  6.     session_destroy();
  7. }
  8. ?>