for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace coossions;
use coossions\base\Coossions;
use coossions\base\CoossionsContractInterface;
class CoossionsHandler extends Coossions implements CoossionsContractInterface
{
/**
* Coossions constructor.
* @param string $secret the secret key to be used in openssl_digest
*/
public function __construct(string $secret)
parent::__construct($secret);
}
* Starts session with SessionHandlerInterface impl + cookie encryption
*
* @param bool $start if true session starts manually, set to false if php.ini session.autostart = 1
public function startSession(bool $start = true)
session_set_save_handler($this);
if(true === $start && session_status() === PHP_SESSION_NONE) {
session_start();