private static function CleantalkFuncs::_apbct_alt_session__id__get in Anti Spam by CleanTalk 7.5
Same name and namespace in other branches
- 7.4 src/CleantalkFuncs.php \CleantalkFuncs::_apbct_alt_session__id__get()
Get hash session ID
Return value
string
1 call to CleantalkFuncs::_apbct_alt_session__id__get()
- CleantalkFuncs::_apbct_setcookie in src/
CleantalkFuncs.php - Save our variables into cookies OR sessions
File
- src/
CleantalkFuncs.php, line 165
Class
- CleantalkFuncs
- Cleantalk class create request
Code
private static function _apbct_alt_session__id__get() {
$id = CleantalkHelper::ip_get(array(
'real',
)) . filter_input(INPUT_SERVER, 'HTTP_USER_AGENT') . filter_input(INPUT_SERVER, 'HTTP_ACCEPT_LANGUAGE');
return hash('sha256', $id);
}