PHP code example of death_satan / session
1. Go to this page and download the library: Download death_satan/session library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
death_satan / session example snippets
$session = new \DeathSatan\Session\Session();
$session->set('aaa','bbb');//设置一个session
$session->delete('aaa');//删除session
$cookie = new \DeathSatan\Session\Cookie();
$cookie->set('aaa','bbb');//设置一个cookie