Re: Sessions, Constructors, and Destructors - Oh my!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux