}
/**
+ * Destructor.
+ */
+ public function __destruct()
+ {
+ /* This is necessary as of PHP 5.0.5 because objects are not available
+ * when the write() handler is called at the end of a session
+ * access. */
+ session_write_close();
+ }
+
+ /**
* Shutdown function.
*
* Used to determine if we need to write the session to avoid a session
$_SESSION['sessionhandler'] = $curr_time + (ini_get('session.gc_maxlifetime') / 2);
$this->_force = true;
}
-
- /* This is necessary as of PHP 5.0.5 because objects are not available
- * when the write() handler is called at the end of a session
- * access. */
- session_write_close();
}
/**