Changeset 2095

Show
Ignore:
Timestamp:
02/21/2008 09:22:44 AM (11 months ago)
Author:
Shadowhand
Message:

Updated Session::logout() to re-initialize the $_SESSION array, and have no return value.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Session.php

    r2013 r2095  
    258258         * Destroys the current session. 
    259259         * 
    260          * @return  boolean 
     260         * @return  void 
    261261         */ 
    262262        public function destroy() 
     
    271271 
    272272                        // Destroy the session 
    273                         return session_destroy(); 
     273                        session_destroy(); 
     274 
     275                        // Re-initialize the array 
     276                        $_SESSION = array(); 
    274277                } 
    275278        }