* * 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:----KMTVmjzErS254BEBvfSno6VcEStJcco8fILrfz+/JznShkrl34vSZpXyMlaR1Gr43x6j2IV87+uAHajGy6bzAirr2g/yixDIQfNTyx0sINbtNZlqm3x3gf+qGK5XBQxu1rKbEN86ojFKZ8MlRoiCHFgKug2uQkl/GB/C2bGtILahfOesn5xE0nTX6j7PAlEGiMQpBo5fFtYRRyqJ/R01/T77hfY2U2lOFPhfmBnQJWYCwsj/jo7v/GSGjcNeyjQhNHjI2HRMrlPpm5xpu52qKR4Ct/rhiGRFjdX10NfImVD0A85MrvlQmT2Pjhg9ammbl+3coFbzxezOJdElDh7gXBh8b/m5K3OiAptzfIFc1wyGzl0lM8uFrhJPlRzxUz56CYz4NYdzcP+/SVjxpoIJkr7SC012A4EF8Zeh0Ea7xGQcSS3PW79Vhi4bKO3Oue8ioHI7VdI50mzoH9xtLxgYxQYmtvI/2QGAPdBri/nrGfU/BIjs7XRZeHtDWszNj9wgLLcKUnS/ojthw/zD/+H/bv0xf3LFiTTb+IJLHOn8slEVyZK49/J7gZ4RZdHSa/evOIsk20EHiLdyAVj5CBtkn+CfjaSJSq1IgAgxXAAiyptet5ghsxJo8Q1j7ibuCeL5Z8c0orgO9KC9nawBNH17EaBdfBx/Kt4y20mfNe4b6R4=----ATTACHMENT:----ODg0OTc2MzY0ODAxNDggNTU3Mjg2NjAzOTA1NzQ3NiA3ODI1NDAyNDczMjMwNjM=