1. Go to this page and download the library: Download anax/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/ */
# Check if a key is set in the session
$app->session->has($key);
# Get a value from the session, null if it is not set.
$app->session->get($key);
# Get a value from the session or get the default value.
$app->session->get($key, $default);
# Set a value in the session, associated with a key.
$app->session->set($key, $value);
# Delete a key from the session.
$app->session->delete($key);
# Get the value from the session and then delete its key, default is null.
$app->session->getOnce($key);
# Specify your own default value when key does not exists.
$app->session->getOnce($key, $default);
# Debug the session and review its content through var_dump.
var_dump($app->session);
# Destroy the session.
$app->session->destroy();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.