/**
  * {@inheritdoc}
  */
 public function offsetSet($offset, $data)
 {
     self::validateSessionKeyLength($offset);
     if (!isset($_SESSION->locks[$offset])) {
         $_SESSION->locks[$offset] = 1;
         self::getLock(self::getLockName($offset), self::$sessionLockTime);
     }
     parent::offsetSet($offset, $data, null, null, array('\\cmsSession', 'removeFromSession'), array('\\cmsSession', 'validateSessionKeyLength'));
 }
 /**
  * {@inheritdoc}
  */
 public function offsetSet($offset, $data)
 {
     static::validateSessionKeyLength($offset);
     if (!isset($this->locks[$offset])) {
         $this->locks[$offset] = 1;
         static::getLock(static::getLockName($offset), static::$sessionLockTime);
     }
     parent::offsetSet($offset, $data, null, null, array(get_class($this), 'removeFromSession'), array(get_class($this), 'validateSessionKeyLength'));
 }