Posted by meltedown on 08/06/05 01:07
Shelly wrote:
> "meltedown" <groups2@reenie.org> wrote in message
> news:DsQIe.976447$JR4.572573@fe02.news.easynews.com...
>
>><?
>>session_start();
>>print_r($_SESSION);
>>?>
>>How come when I put this code on one page it says:
>>Array ( [userid] => 24 [loginid] => 1 )
>>
>>but if I put it on another page it simply says:
>>Array ( )
>>
>>What is going on ? I thought the session variables were suppost to be
>>available to any page
>
>
> You need session_start() at the beginning of EVERY SINGLE PAGE that uses
> session variables.
>
> Shelly
>
>
Yes that what I have. The code I posted is on both pages.
[Back to original message]
|