You are here: Re: problems with session variables « PHP Programming Language « IT news, forums, messages
Re: problems with session variables

Posted by Oli Filth on 10/12/05 02:14

Japhy said the following on 11/10/2005 19:42:
> hello,
> I am finding that setting session variables is very unreliable (for
> me).
>
> Am I doing something wrong with syntax :
> $contnum = getrequest("ID1") ; (ID1 is passed in the URL)
> $_SESSION['sess_contnum']= $contnum ;
>
> My program will randomly start to fail.
> If I echo $sess_contnum, sometimes it is set, sometimes not.

You shouldn't be using $x to access $_SESSION['x']. See
http://www.php.net/manual/security.globals.php#AEN6744



--
Oli

 

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

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