Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/10/2014, 16:21
eduuh17
 
Fecha de Ingreso: octubre-2014
Mensajes: 70
Antigüedad: 9 años, 7 meses
Puntos: 0
Respuesta: Problema para salir de una sesion php

Cita:
Iniciado por herzbazi Ver Mensaje
prueba asi
Código PHP:
Ver original
  1. <?php
  2. $_SESSION = array();
  3. if (ini_get("session.use_cookies")) {
  4.     $params = session_get_cookie_params();
  5.     setcookie(session_name ("nombre de tu sesión"), '', time() - 42000,
  6.         $params["path"], $params["domain"],
  7.         $params["secure"], $params["httponly"]
  8.     );
  9. }
  10. header("Location: index.php");
  11. ?>

espero te funcione.. :)
Gracias ! Si me funciono :)!