AnonymousUserSession.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Session/AnonymousUserSession.php
  2. 8.9.x core/lib/Drupal/Core/Session/AnonymousUserSession.php
  3. 10 core/lib/Drupal/Core/Session/AnonymousUserSession.php

Namespace

Drupal\Core\Session

File

core/lib/Drupal/Core/Session/AnonymousUserSession.php

View source
<?php

namespace Drupal\Core\Session;


/**
 * An account implementation representing an anonymous user.
 */
class AnonymousUserSession extends UserSession {
    
    /**
     * Constructs a new anonymous user session.
     *
     * Intentionally don't allow parameters to be passed in like UserSession.
     */
    public function __construct() {
    }

}

Classes

Title Deprecated Summary
AnonymousUserSession An account implementation representing an anonymous user.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.