Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/03/2011, 15:51
Blashak
 
Fecha de Ingreso: noviembre-2007
Mensajes: 471
Antigüedad: 16 años, 5 meses
Puntos: 2
Respuesta: problemas con el session_id

Cita:
Iniciado por abimaelrc Ver Mensaje
Usa la recomendación de PHP para destruir las sesiones:
Código PHP:
Ver original
  1. <?php
  2. // Initialize the session.
  3. // If you are using session_name("something"), don't forget it now!
  4.  
  5. // Unset all of the session variables.
  6. $_SESSION = array();
  7.  
  8. // If it's desired to kill the session, also delete the session cookie.
  9. // Note: This will destroy the session, and not just the session data!
  10. if (ini_get("session.use_cookies")) {
  11.     $params = session_get_cookie_params();
  12.     setcookie(session_name(), '', time() - 42000,
  13.         $params["path"], $params["domain"],
  14.         $params["secure"], $params["httponly"]
  15.     );
  16. }
  17.  
  18. // Finally, destroy the session.
ok, lo probare.

para que sirve ini_get?? lo mire en el manual de php pero no lo entendi muy bien