original_string: protected function makeSessionId()
      {
          $controller = property_exists($this, 'controller') && $this->controller
              ? $this->controller
              : $this;
  
          $uniqueId = method_exists($this, 'getId') ? $this->getId() : $controller->getId();
  
          // Removes Class name and "Controllers" directory
          $rootNamespace = Str::getClassId(Str::getClassNamespace(Str::getClassNamespace($controller)));
  
          // The controller action is intentionally omitted, session should be shared for all actions
          return 'widget.' . $rootNamespace . '-' . class_basename($controller) . '-' . $uniqueId;
      }
code: protected function makeSessionId()
      {
          $controller = property_exists($this, 'controller') && $this->controller
              ? $this->controller
              : $this;
  
          $uniqueId = method_exists($this, 'getId') ? $this->getId() : $controller->getId();
  
          // Removes Class name and "Controllers" directory
          $rootNamespace = Str::getClassId(Str::getClassNamespace(Str::getClassNamespace($controller)));
  
          // The controller action is intentionally omitted, session should be shared for all actions
          return 'widget.' . $rootNamespace . '-' . class_basename($controller) . '-' . $uniqueId;
      }
code_tokens: protected function makeSessionId ( ) { $ controller = property_exists ( $ this , 'controller' ) && $ this -> controller ? $ this -> controller : $ this ; $ uniqueId = method_exists ( $ this , 'getId' ) ? $ this -> getId ( ) : $ controller -> getId ( ) ; // Removes Class name and "Controllers" directory $ rootNamespace = Str :: getClassId ( Str :: getClassNamespace ( Str :: getClassNamespace ( $ controller ) ) ) ; // The controller action is intentionally omitted, session should be shared for all actions return 'widget.' . $ rootNamespace . '-' . class_basename ( $ controller ) . '-' . $ uniqueId ; }
docstring: Returns a unique session identifier for this widget and controller action.
  @return string
docstring_tokens: Returns a unique session identifier for this widget and controller action .