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

Your name:

Reply:


Posted by Jerry Stuckle on 12/05/06 13:12

Sanders Kaufman wrote:
> Steve JORDI wrote:
>
>> 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 :-)
>
>
> I've had such problems figgering this out, I resorted to writing my own
> session handling. Getting this down would *seriously* cut back on the
> number of lines of code I have to write!
> So...
>
> It *resumes* a session?!
> If I put a bunch of values into session variables, how do I get those
> back with the resumed session... and how do I make sure I resumed the
> right session?

Just call session_start() on every page that uses sessions. PHP ensures
the correct session id is used again.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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