/ Published in: PHP
Expand |
Embed | Plain Text
Comments
Subscribe to comments
You need to login to post a comment.
iroybot on 01/29/09
2 people have marked this snippet as a favorite
Subscribe to comments
You need to login to post a comment.
You seem to miss the way a singleton pattern is to be implemented friend. Also, objects should not be stored in the session.
@adix I do this for performance reasons. This has several benefits for form validation, etc. pp
even though you would end up with the same instance on every pageload, saving the object in a session lets you access the exact same instance throughout the whole website.
What are the downsides?
@adix I do this for performance reasons. This has several benefits for form validation, etc. pp
even though you would end up with the same instance on every pageload, saving the object in a session lets you access the exact same instance throughout the whole website.
What are the downsides?