Re: [PHP4BETA] session problem

[email protected] ("Oscar E. Retes") Mon, 29 May 2000 19:51:06 -0500
Newsgroups php.version4
Message-ID <[email protected]>
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
[email protected]