Re[2]: [Phplib-users] phplib-php4 object resumption differences
Brought to you by:
nhruby,
richardarcher
From: Maxim D. <max...@bo...> - 2002-09-27 09:11:21
|
Hello Marko, The problem described by Giancarlo does not apply to the PHP's serialize behavior, not Session4_Custom in particular. If you want to make serialize not to save all the class variables, you should define __sleep & __wakeup in serialized classes. This also apply to the classes saved by User4, since it also serializes objects using PHP serialize(). Friday, September 27, 2002, 12:42:37 PM, you wrote: >> G> With persistent slot you don't leave unconscoiusly, unaccounted or unwanted >> G> data around. >> ....................................... >> <skipped> >> Did you read my yesterday's message concerning __sleep & __wakeup? >> MK> Well, I noticed that the custom sessions (if you're not using extensively MK> many session variables, which I don't do since everything is stored via MK> your user4) slows my app only by 3% down in comparison to pure php4 MK> sessions. So, for security one could simply use the session4_custom.inc MK> instead. -- Best regards, Maxim Derkachev mailto:max...@bo... IT manager, Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 www.books.ru, www.symbol.ru |