Reply to Re: [PHP] Register globals and ini_set

Your name:

Reply:


Posted by Jason Barnett on 07/08/05 17:15

Since you mention the PHP version was old (4.1) then I have to ask: were
you using the $_SESSION array all along or were you using
session_register to register session variables? Although you probably
aren't since that would be rather easy to debug.

The script in which your global_variable was set makes absolutely no
difference. PHP is just looking for the SID someplace anyways (whether
that's COOKIE, GET or POST) and then it goes and retrieves that session
that matches that SID.

OK... when you say that it fails sporadically, what do you mean exactly?

Probably, based on what you've just said, you're somehow assigning into
your $_SESSION variables through the use of global variables that have
the same name as your $_SESSION indexes.

http://php.net/manual/en/ref.session.php#ini.session.bug-compat-42


--
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php

[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

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