Reply to Re: SESSION variables not available an all pages

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация