You are here

private static function CleantalkFuncs::_apbct_alt_session__id__get in Anti Spam by CleanTalk 8.3

Same name and namespace in other branches
  1. 8.4 src/CleantalkFuncs.php \Drupal\cleantalk\CleantalkFuncs::_apbct_alt_session__id__get()
  2. 9.1.x src/CleantalkFuncs.php \Drupal\cleantalk\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 127

Class

CleantalkFuncs
Cleantalk class create request

Namespace

Drupal\cleantalk

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);
}