You are here: Re: -> PHP4 Singleton implementation question <- « PHP Programming Language « IT news, forums, messages
Re: -> PHP4 Singleton implementation question <-

Posted by Steve JORDI on 12/05/06 08:00

>When you make the call
> header("Location: ./passeportswelcome.php") ;
>you are telling the browser to load a new page. But on that page you
>don't have a session-start() - or the include for your class.

Ok, the include is actually in my source code. but not session_start.

>Since it's a new page, everything starts over. You need the include and
> session_start() call here, also.

Yes, that did it! THANKS!!!
I didn't know that session_start() was also used to resume a session.
I thought that having it once was enough, but as you said, the web
being a stateless environment...
Wow, now I know that, it seems logical :-)

Anyway, again, thanks a lot for your patience and your help.

Sincerely,
Steve JORDI

(Remove the K_I_L_LSPAM from my email address)
------------------------------------------------
1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com
Switzerland WWW: www.sjordi.com
------------------------------------------------
Volcanoes at www.sjordi.com/volcanoes
MovieDB at www.sjmoviedb.com
------------------------------------------------

 

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

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