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 391 to 397

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 14th May 2021 23:05 Europe/London time based on the source file dated 14th May 2021 10:15 Europe/London time.