# worker/4.9.36/src/MWP/Action/DestroySessions.php

ManageWP Worker, version 4.9.36. 22 lines.

- Page: https://pluginprobe.com/plugins/worker/4.9.36/code/src/MWP/Action/DestroySessions.php
- Raw: https://pluginprobe.com/plugins/worker/4.9.36/raw/src/MWP/Action/DestroySessions.php
- Modified: 2015-04-15T15:25:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/worker/4.9.36/code/src/MWP/Action/DestroySessions.php#L10-L20`.

```php
<?php
/*
 * This file is part of the ManageWP Worker plugin.
 *
 * (c) ManageWP LLC <contact@managewp.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

class MWP_Action_DestroySessions extends MWP_Action_Abstract
{
    public function execute()
    {
        $store = $this->container->getSessionStore();

        return array(
            'destroyed' => $store->destroyAll(),
        );
    }
}

```
