You should set a name to your session:

Index.php:
<?
session_name("mySession");
session_start();
$_SESSION['myVar'] = "something";
?>


LogOff.php
<?
session_name("mySession");
session_start();
Session_destroy();
Print_r($_SESSION);
?>
+----------------------------------------+
| ISC Edwin Cruz <[EMAIL PROTECTED]>    | +----+
| IT Manager, MySQL GUI Doc Team         | |    |
| Transportes Medel Rogero SA de CV      | |    |
| Desk:      +52 (449) 910 30 90 x3054   | +----+
| MX Mobile: +52 (449) 111 29 03         |
| Aguascalientes, Mexico                 |
| Skype: e-cruz <[EMAIL PROTECTED]> |
| http://www.medel.com.mx                |
+----------------------------------------+



-----Mensaje original-----
De: cajbecu [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 20 de Abril de 2006 09:03 a.m.
Para: João Cândido de Souza Neto
CC: php-general@lists.php.net
Asunto: Re: [PHP] session


Hello,

Try generating your own session id and the problem will be solved ;)

cheers,

João Cândido de Souza Neto wrote:
> Hi everyone.
> 
> I hope someone here can help me.
> 
> When i start a session in a php page, this session receives an unique 
> id.
> 
> If you think about this, if i call a session_destroy() in any page and 
> in the other paga call a session_start() again, it'll receive other 
> unique id. But it isn't working. Everything above has been executed 
> but the session id's always the same.
> 
> It can be any config var in php.ini?
> 
> Thanks for tips.
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to