PHP code example of worldnewsgroup / serverless-session-handler

1. Go to this page and download the library: Download worldnewsgroup/serverless-session-handler 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/ */

    

worldnewsgroup / serverless-session-handler example snippets


    use WorldNewsGroup\Serverless\ServerlessSession;

    endor/autoload.php') is best) as possible
    ServerlessSession::getInstance('<dynamodb_table_name>', '<aws region>');

    ...
    // set the Session variable token to 'jwt'
    $_SESSION['token'] = 'jwt';