Skip to content

Instantly share code, notes, and snippets.

孙德利
@sundeli123
sundeli123 / SecureSessionHandler.php
Created March 3, 2018 02:50 — forked from dannygsmith/SecureSessionHandler.php
Secure session handler implementation.
<?php
class SecureSessionHandler extends SessionHandler {
protected $key, $name, $cookie;
public function __construct($key, $name = 'MY_SESSION', $cookie = [])
{
$this->key = $key;
$this->name = $name;