Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

Security domain

Security Commands

BulkDeleteCustomerSessionsCommand

PrestaShop\PrestaShop\Core\Domain\Security\Command\BulkDeleteCustomerSessionsCommand Deletes customer sessions in bulk action

Command details
Constructor parameters
  • $array $sessionIds
Handler class PrestaShop\PrestaShop\Adapter\Security\CommandHandler\BulkDeleteCustomerSessionsHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Security\CommandHandler\BulkDeleteCustomerSessionsHandlerInterface
Return type void

BulkDeleteEmployeeSessionsCommand

PrestaShop\PrestaShop\Core\Domain\Security\Command\BulkDeleteEmployeeSessionsCommand Deletes employees sessions in bulk action

Command details
Constructor parameters
  • $array $sessionIds
Handler class PrestaShop\PrestaShop\Adapter\Security\CommandHandler\BulkDeleteEmployeeSessionsHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Security\CommandHandler\BulkDeleteEmployeeSessionsHandlerInterface
Return type void

ClearOutdatedCustomerSessionCommand

PrestaShop\PrestaShop\Core\Domain\Security\Command\ClearOutdatedCustomerSessionCommand Class ClearOutdatedCustomerSessionCommand is a command to clear customer sessions.

Command details
Constructor parameters
    Handler class PrestaShop\PrestaShop\Adapter\Security\CommandHandler\ClearOutdatedCustomerSessionHandler

    Implements:

    • PrestaShop\PrestaShop\Core\Domain\Security\CommandHandler\ClearOutdatedCustomerSessionHandlerInterface
    Return type void

    ClearOutdatedEmployeeSessionCommand

    PrestaShop\PrestaShop\Core\Domain\Security\Command\ClearOutdatedEmployeeSessionCommand Class ClearEmployeeSessionCommand is a command to clear employee sessions.

    Command details
    Constructor parameters
      Handler class PrestaShop\PrestaShop\Adapter\Security\CommandHandler\ClearOutdatedEmployeeSessionHandler

      Implements:

      • PrestaShop\PrestaShop\Core\Domain\Security\CommandHandler\ClearOutdatedEmployeeSessionHandlerInterface
      Return type void

      DeleteCustomerSessionCommand

      PrestaShop\PrestaShop\Core\Domain\Security\Command\DeleteCustomerSessionCommand Class DeleteCustomerSessionCommand is a command to delete customer session by given id.

      Command details
      Constructor parameters
      • $int $sessionId
      Handler class PrestaShop\PrestaShop\Adapter\Security\CommandHandler\DeleteCustomerSessionHandler

      Implements:

      • PrestaShop\PrestaShop\Core\Domain\Security\CommandHandler\DeleteCustomerSessionHandlerInterface
      Return type void

      DeleteEmployeeSessionCommand

      PrestaShop\PrestaShop\Core\Domain\Security\Command\DeleteEmployeeSessionCommand Class DeleteEmployeeSessionCommand is a command to delete employee session by given id.

      Command details
      Constructor parameters
      • $int $sessionId
      Handler class PrestaShop\PrestaShop\Adapter\Security\CommandHandler\DeleteEmployeeSessionHandler

      Implements:

      • PrestaShop\PrestaShop\Core\Domain\Security\CommandHandler\DeleteEmployeeSessionHandlerInterface
      Return type void

      Security Queries