Re: [PHP4BETA] session problem
| From: | Oscar E. Retes | Date: | Tue, 30 May 2000 00:51:06 +0000 |
| Subject: | Re: [PHP4BETA] session problem | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-15922@lists.php.net to get a copy of this message | ||
but it was never that way !. at least, not till php4rc1. i'm using rc1 in a
production server, and i don't have to pass sess id to use the same
session. apart from that, i supose that compiling with --enable-trans-sid
does that for me, doesn't it ?
from what i know, php should read from the cookie it has set in the users
browser and get the sid from there, isn't it that way ?
At 07:39 PM 5/29/00 +0000, you wrote:
>><? session_start() ?>
>>
>>if you try that you'll notice it creates a session every time it loads,
>
> Yes, that's true... You have to pass the session id of the session. If you
>don't pass that PHP starts a new one...
>
> Ex.:
>
>*** pag1:
><?php
>session_start();
>session_register("exp");
>$exp = 10;
>echo '<a
>href="pag2.php?'.session_name().'='.session_id().'">pag
>2</a>';
>?>
>
>*** pag2:
><?php
>session_start();
>echo $exp;
>?>
>
>
>Bye,
> Fernando Silva
-----------------------
Oscar E. Retes
http://www.viamedia.com.py
or@viamedia.com.py