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

Breadcrumb

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

function AbstractProxy::setName

Sets the session name.

Throws

\LogicException

File

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

Class

AbstractProxy
@author Drak <drak@zikula.org>

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Proxy

Code

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

API Navigation

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