Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AbstractProxy.php

function AbstractProxy::setId

Sets the session ID.

Throws

\LogicException

File

vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php, line 68

Class

AbstractProxy
@author Drak <drak@zikula.org>

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Proxy

Code

public function setId(string $id) : void {
    if ($this->isActive()) {
        throw new \LogicException('Cannot change the ID of an active session.');
    }
    session_id($id);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal