| Store an object in a PHP session |
|
|
|
| Written by Bernhard Fischer | ||||||
| Tuesday, 20 February 2007 | ||||||
|
The title is a bit different from what the content describes, but that's intended... You would not want to store an object in a session - you would rather store a reference to an object. This way the object in question is not copied, thus using double memory, for the sake of efficiency. save the reference: retrieve it: Keep in mind that storing objects in session can cause trouble if cookies are used, as a cookie’s size is limited.
Write Comment
Powered by AkoComment Tweaked Special Edition v.1.4.6 |
||||||
| Last Updated ( Saturday, 03 March 2007 ) | ||||||
| < Prev |
|---|






