Skip to content

Commit

Permalink
cannot call unset with the return value of a function
Browse files Browse the repository at this point in the history
git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@97 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
Dave Goodwin committed Sep 28, 2011
1 parent c6a5238 commit c96dce9
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions website_code/php/logout.php
@@ -1,19 +1,15 @@
<?PHP

/**
*
* logout page, user has logged out, wipe sessions
*
* @author Patrick Lockley
* @version 1.0
* @copyright Copyright (c) 2008,2009 University of Nottingham
* @package
*/

require("../../config.php");
<?php

unset(session_id());
/**
*
* logout page, user has logged out, wipe sessions
*
* @author Patrick Lockley
* @version 1.0
* @copyright Copyright (c) 2008,2009 University of Nottingham
* @package
*/

session_destroy();
require_once(dirname(__FILE__) . '/../../config.php');

?>
session_destroy();

0 comments on commit c96dce9

Please sign in to comment.