Reply to Re: -> PHP4 Singleton implementation question <-

Your name:

Reply:


Posted by Tom on 12/01/06 16:57

You probably have register_globals on and the session variable is
getting overwritten -- this problem drove me crazy for ages.

I finally figured it out recently and posted a comment on the php site
that will help if this is problem:

http://www.php.net/manual/en/ref.session.php#70184

Good luck!

Tom


On Nov 30, 5:37 am, Steve JORDI <steveK_I_L_LSPAMjo...@hotmail.com>
wrote:
> >Following the PHP documentation onhttp://nl3.php.net/static, I would
> >suggest to replace this last line with a non-referencing one:
> >$welcome = Welcome::getInstance() ;Did this but it din't change a thing.
>
> >As was posted earlier, PHP5 has solved the objects-and-references problem.Yes, but I have to deal with PHP4, not 5 unfortunately.
>
> I also tried to set a $_SESSION['welcome'] variable, but still, each
> time I reenter my page, it's reassigned a new instance.
>
> It's crazy, I would never have thought that it would be such a hassle
> to keep a variable value between pages (without using URL parameters).
>
> Thanks anyway.
>
> Sincerely,
> Steve JORDI
>
> (Remove the K_I_L_LSPAM from my email address)
> ------------------------------------------------
> 1197 Prangins Email: stevejordiK_I_L_LS...@hotmail.com
> Switzerland WWW: www.sjordi.com
> ------------------------------------------------
> Volcanoes at www.sjordi.com/volcanoes
> MovieDB at www.sjmoviedb.com
> ------------------------------------------------

[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

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