Exemplo n.º 1
0
 public static function destroy()
 {
     $app = ActiveRecordModel::getApplication();
     $app->processRuntimePlugins('session/before-logout');
     $session = new Session();
     $session->unsetValue('User');
     $session->unsetValue('CustomerOrder');
     $app->processRuntimePlugins('session/logout');
 }
Exemplo n.º 2
0
 public static function destroy()
 {
     $session = new Session();
     $session->unsetValue('CustomerOrder');
     $session->unsetValue('orderData');
 }
 /**
  * Elimina un elemento (variable) de los datos de sesión.
  * @param string $str_name Nombre del elemento (variable).
  * @return mixto Valor asociado.
  */
 function unsetSessionElement($str_name, $str_key = '')
 {
     if ($str_name != '') {
         if ($str_key != '') {
             $name = "{$str_name}" . '_' . $str_key;
             Session::unsetValue($name);
         } else {
             $name = $str_name;
             Session::unsetValue($name);
         }
     }
 }
Exemplo n.º 4
0
 public function logout()
 {
     Session::unsetValue("ID-ASPIRANTE");
     Session::unsetValue("EMAIL-ASPIRANTE");
     echo '<script> window.location.href="' . URL . '"</script>';
 }