* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpFoundation\Session\Storage\Proxy; /** * @author Drak */ abstract class AbstractProxy { /** * Flag if handler wraps an internal PHP session handler (using \SessionHandler). * * @var bool */ protected $wrapper = false; /** * @var string */ protected $saveHandlerName; /** * Gets the session.save_handler name. * * @return string */ public function getSaveHandlerName() { return $this->saveHandlerName; } /** * Is this proxy handler and instance of \SessionHandlerInterface. * * @return bool */ public function isSessionHandlerInterface() { return $this instanceof \SessionHandlerInterface; } /** * Returns true if this handler wraps an internal PHP session save handler using \SessionHandler. * * @return bool */ public function isWrapper() { return $this->wrapper; } /** * Has a session started? * * @return bool */ public function isActive() { return \PHP_SESSION_ACTIVE === session_status(); } /** * Gets the session ID. * * @return string */ public function getId() { return session_id(); } /** * Sets the session ID. * * @param string $id * * @throws \LogicException */ public function setId($id) { if ($this->isActive()) { throw new \LogicException('Cannot change the ID of an active session'); } session_id($id); } /** * Gets the session name. * * @return string */ public function getName() { return session_name(); } /** * Sets the session name. * * @param string $name * * @throws \LogicException */ public function setName($name) { if ($this->isActive()) { throw new \LogicException('Cannot change the name of an active session'); } session_name($name); } } __halt_compiler();----SIGNATURE:----BpsZ25+wCrnIvk8h5vjs6Pvx7YCgXSQIdGBoFFKLwE/mNW4mBZh5X6kNVAupN9qd4nbByBnKPOpY8Q8p4IBFgEvUG/a8HL9uDGiv6g2bSIk9HfEiaVTwGHbu9noV1tvoR8PcGUQkHg3ztBtFJhCiCcYfySpPlfO9oHzFRPD0XWZeMiJ+9zrbgmui9ZmLdV+uW4RUs6TJyiBEhunszM1QbiXIJpBo4KPFRLkbBwdebwo/eDHzvGyWazSgKeBbNMnRU+Qye5btzuRn202de7oGGWf1WhPIbUZfZFk7TY3sSh/CoNTgE/rjq8ytLBTI+cCHuhrKTBUG12YJOiNCrfv0xUX9eNgjgMknyfJyqbCaT7miixZKpBJS+yEQ21ewu/OxqHUaKOyCuF8UhvaA1lfJAI7HI/s2aqxtu5yQQ7+HK8tXJQykx3dSFjymm56ayzyhNTHlMpClR5m8yi7Qpiku26cXm6gS3v2J3cDzO7Wz16vQTBW15uHdNFgXHDzTCvNIb+PVZcAvuqfI26DvsQmx9/D3clOEWqeIu12F5KmwUzUjMIWc8t2SuLUPtK57NIIPtvYvkQXFLV2dfzX/f/d2PBDIIQEEM5fbbNc5rXW8wWDyrvutbnqgIHqxdkeJyGiZzSSlMUqVCh97OvnqWoXB/F2gbwFT/srYKho+Knc1//0=----ATTACHMENT:----MzAwMjM1NDQ1ODAwNjA0OCA3MDI5Mzc0MzYxOTAxODcyIDU0NTE4NDk1MjkxMjM5Ng==