RE: [PHP] session
| From: | Ing. Edwin Cruz | Date: | Thu, 20 Apr 2006 14:38:37 +0000 |
| Subject: | RE: [PHP] session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234397@lists.php.net to get a copy of this message | ||
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 <ecruz@medel.com.mx> | +----+
| 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 <edwin.garcia@mysql.com> |
| http://www.medel.com.mx |
+----------------------------------------+
-----Mensaje original-----
De: cajbecu [mailto:cajbecu@gmail.com]
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