PHP code example of silviooosilva / phession

1. Go to this page and download the library: Download silviooosilva/phession 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/ */

    

silviooosilva / phession example snippets





use Silviooosilva\Phession\Phession;

uration.

Phession::start(7200); // Tempo de duração da sessão. |INT|STRING

//Set - Stores any information in the session.

$ProfileKey = "DeveloperProfileKey";

$DeveloperProfile = [
  'name' => 'Sílvio Silva',
  'email' => '[email protected]',
  'role' => 'Developer'
];

Phession::set($ProfileKey, $DeveloperProfile);