You are here: Re: [PHP] Sessions, Constructors, and Destructors - Oh my! « PHP « IT news, forums, messages
Re: [PHP] Sessions, Constructors, and Destructors - Oh my!

Posted by Dan Trainor on 08/30/05 00:11

Thanks for replying, Jasper -

<snip>

>> Is this possible? Does it work this way? If so, or if not for that
>> matter, please help me out here to better understand how these three
>> elements interact with eachother, if at all.

Ah yes, me being quite new didn't take into consideration in which
versions constructors and destructors were available. Thank you.


> I think that (in PHP5 -- PHP4 doesn't have real destructors) you could
> put an object inside the $_SESSION variable and it would be serialized
> in the session (as long as you had the class definition available when
> it was unserialized, i.e. before session_start() is called).
>

<snip>

> The best thing to do in this situation is to write your own
> session_save_handler that uses a database, and point it at the MySQL
> server [2]. If you really had to, you could maybe put the
> session_save_path on the NFS share [3].

I think that'sm y winner, and the best suggestion yet. I will consider
my options.

Thanks
-dant

 

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

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