/** * The destroy handler, this is executed when a session is destroyed with * session_destroy() and takes the session id as its only parameter. * * @param string $sess_id The session ID to destroy * * @return void */ public function destroy($sess_id) { // Perform standard actions required by all session methods: parent::destroy($sess_id); // Perform file-specific cleanup: $sess_file = $this->getPath() . '/sess_' . $sess_id; if (file_exists($sess_file)) { return unlink($sess_file); } return true; }
/** * The destroy handler, this is executed when a session is destroyed with * session_destroy() and takes the session id as its only parameter. * * @param string $sess_id The session ID to destroy * * @return bool */ public function destroy($sess_id) { // Perform standard actions required by all session methods: parent::destroy($sess_id); // Perform Memcache-specific cleanup: return $this->getConnection()->delete("vufind_sessions/{$sess_id}"); }