14-session_variables/logout.php

Go to the documentation of this file.
00001 <?php
00010 //When using sessions we must start session as early in program
00011 //as possible, preferably first line.
00012 session_start();
00013 
00016 session_register('logged_in');
00017 
00018 
00019 //including file which has common functions like redirect
00020 //and get_session which will be reused in many scripts
00021 require('common_functions.php');
00022 
00023 //Remove current user login
00024 $_SESSION['logged_in']="";
00025 
00026 //Redirec to index page
00027 redirect('index.php');
00028 
00029 ?>

Generated on Fri Nov 4 14:16:54 2011 for PHP example documentation by  doxygen 1.4.7