PHP code example of lukeelten / cakephp-encrypted-session
1. Go to this page and download the library: Download lukeelten/cakephp-encrypted-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/ */
lukeelten / cakephp-encrypted-session example snippets
composer
'Session' => [
"Encryption" => [
"salt" => getenv("SESSION_SALT", "default-salt"), // Server side salt; fill in random string
"cookieName" => "CAKE_SESSION_KEY", // Cookie name
"expire" => strtotime("+1 year"), // Default cookie lifetime
"secure" => false, // Use with https only
"path" => "/" // Cookie path
]
]