You are here

private static function CleantalkFuncs::_apbct_alt_session__id__get in Anti Spam by CleanTalk 9.1.x

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

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