PHP code example of joefallon / phpsession
1. Go to this page and download the library: Download joefallon/phpsession 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/ */
joefallon / phpsession example snippets
$foo = 'bar';
$session = new Session();
$session->write($foo, 'value');
$session->read($foo); // value
__construct($maxAgeInSecs = 1800, $lastActivityTimeoutInSecs = 1800)
read($key)
write($key, $val)
unsetSessionValue($key)
maxAgeTimeoutExpired()
lastActivityTimeoutExpired()
destroy()