clearCentinelSession

Clears session of any variables that begin with "Centinel_".

Description

clearCentinelSession(); 

Usage

  1. if ( !function_exists( 'clearCentinelSession' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paypal-for-woocommerce/classes/lib/CentinelUtility.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = clearCentinelSession(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/classes/lib/CentinelUtility.php  
  1. function clearCentinelSession() { 
  2. unset($_SESSION['Message']); 
  3. foreach($_SESSION as $key => $value) { 
  4. if(preg_match("/^Centinel_.*/", $key) > 0) { 
  5. unset($_SESSION[$key]); 
  6.  
  7.  
  8. }