You are here: Re: $_SESSION; more specific « All PHP « IT news, forums, messages
Re: $_SESSION; more specific

Posted by no on 06/18/05 15:06

On Fri, 17 Jun 2005 04:22:36 -0700, "flintridgeparkenfarker
vonkerschnauzerheiden" <no@spam.com> wrote:
>What happens when I run this example is (I modified it a little for
>monitoring):
> The SID is available to print on page1.php and the session vars are
>loaded.
> After clicking the link to page2.php, the page opens with empty session
>vars.

Are you using session_start() at the top of all pages that need access
to the $_SESSION[] vars? As a general rule you should start every page
on a session-based site with session_start().

Cheers
Chris R.

 

Navigation:

[Reply to this 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

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