Posted by Xylene2301 on 09/29/68 12:00
Ohhhh! I get it!
Tst2.php has to have a session_start() as well!
Thanks!!
"Christoph Jeschke" <spam@knurd.de> wrote in message
news:478c5d69$0$9110$9b4e6d93@newsspool2.arcor-online.net...
> Xylene2301:
>
>> pressing a button on tst1.php submits to a form tst2.php which echos
>> the session id (successfully) and attempt to echo the username session
>> vaiable
>> (fails). Why not?
>
> You missed
>
>> tst1.php************************************
>> <?php
>> session_start(); // start the session
> ^^^^^^^^^^^^^^^^
>
>> tst2.php************************************
>>
>> <?php
>
> here.
>
> Greetings
> Christoph
>
> --
> Today is Setting Orange, the 15th day of Chaos in the YOLD 3174
>
Navigation:
[Reply to this message]
|