linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Source for file logout.php

Documentation is available at logout.php

  1. <?php
  2. /**
  3.  * @package linea21.core
  4.  * @subpackage admin
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. ////////////////////////////////////
  12. //    on tue les variables de sessions
  13. ////////////////////////////////////
  14.  
  15. include_once("../config/server.php");
  16. include_once("../lib/no_cache.php");
  17. $_SESSION array();
  18. // we delete user cookie and last_page 
  19. // necessary to avoid loop on login page
  20. // when linea21_lastpage is set to inexisting value
  21. setcookie("linea21_lastuser"""time(3600'/');
  22. setcookie("linea21_lastpage"""time(3600'/');
  23.  
  24. header("Location: login.php");
  25. exit();
  26. ?>

Documentation generated on Thu, 03 May 2012 15:06:05 +0200 by phpDocumentor 1.4.1