Re: Storing website templates in sessions
| From: | John W. Holmes | Date: | Wed, 07 Jul 2004 22:34:19 +0000 |
| Subject: | Re: Storing website templates in sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189912@lists.php.net to get a copy of this message | ||
Joe Harman wrote:
I was curious if anyone out there has some pros and cons to storing a website template that is extracted from a mysql db and stored in a session... is this an efficient way to do it? also... does anyone know what the size limitations for a session would be?There's no practical limit on the size of sessions, but they are not the place for template files. Neither are databases. Use the file system for files ;) and include() or fopen() the templates, etc. Use Smarty or a similar system if you want caching. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com