| 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
 [Back to original message] |