Example #1
0
 /**
  * writeClose() - Shutdown the sesssion, close writing and detach $_SESSION from the back-end storage mechanism.
  * This will complete the internal data transformation on this request.
  *
  * @param bool $readonly - OPTIONAL remove write access (i.e. throw error if IfwPsn_Vendor_Zend_Session's attempt writes)
  * @return void
  */
 public static function writeClose($readonly = true)
 {
     if (self::$_unitTestEnabled) {
         return;
     }
     if (self::$_writeClosed) {
         return;
     }
     if ($readonly) {
         parent::$_writable = false;
     }
     session_write_close();
     self::$_writeClosed = true;
 }