![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
21/05/2012, 08:32
|
| | Fecha de Ingreso: mayo-2012
Mensajes: 24
Antigüedad: 12 años, 8 meses Puntos: 0 | |
Fatal error: Function name must be a string in Buenas tengo un error que se me genera al cerrar la seccion de una pagina web me sale esto lo único que hice es actualizar el comando de session_unregistrer por $SESSION ya que estoy en la version de php 5.3 y la verdad no se que hacerle. Fatal error: Function name must be a string in /var/www/digisalud/xfm/app/actions/core/acceso/modelo/a1564325394.php on line 12
ESTE ES EL ARCHIVO a1564325394.php
<?php
/**
* Destruye la sesion y sale del sistema
*
* @version 1.0
* @package xfm
* @dat 20070813
* @author Sanny Alexander Sanchez
*/
class a1564325394 extends AbstractModel{
function execute(){
$_SESSION('/xglobal/');
unset($_SESSION['xaccion']);
unset($_SESSION['xglobal']);
if(isset($_SESSION['conf'])){
unset($_SESSION['conf']);
}
if(isset($_SESSION['msje'])){
unset($_SESSION['msje']);
}
//session_start();
//session_start();
/*
$_SESSION = array(); // destroy all $_SESSION data
setcookie(session_name(), "", time() + (3600 * 8));
session_destroy();
$act = $this->_req->getParameter('act').'';
if( $act == '' ) $act = 'login';
header('location: index.php?x='.$act);
exit();
*/
session_unset();
session_destroy();
$act = $this->_req->getParameter('act').'';
if( $act == '' ) $act = 'login';
header('location: index.php?x='.$act);
exit();
}
}
?> |