Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

get_session_api_key()

Description

Return the session specific key for the given user.

Parameters

ColumnTypeDefaultDescription
$user integer The user ID

Return

string

Location

include/api_functions.php lines 364 to 370

Definition

 
function get_session_api_key($user)
    {
    global 
$scramble_key;
    
$private_key get_api_key($user);
    
$usersession sql_value("SELECT session value FROM user where ref ='" $user "'""");
    return 
hash_hmac("sha256""{$usersession}{$private_key}"$scramble_key);
    }

This article was last updated 28th February 2021 15:05 Europe/London time based on the source file dated 9th February 2021 12:45 Europe/London time.