Another cache questions - "Dynamic into static content"

From: Date: Sat, 04 Jan 2003 13:30:42 +0000
Subject: Another cache questions - "Dynamic into static content"
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7015@lists.php.net to get a copy of this message
I have just been introduced to Smarty and have some questions that maybe someone can answer? Suppose you are going to write a site consisting of a menu on top (called menu) and below some type of information (called content) which you collect from a database. Here you could use smarty to cache the page in order to minimize questions to the database. Question 1 If you don't want to cache the menu, how do you do it in smarty? I want to "rebuild" the menu each time beacuse my visitors may not have the same menu depending on if they are logged in or not. The content should always be the same for all users. Question 2 When a user doesn't have their cookies enabled then the session id, ?SID=#, is appended to the links within the template. However if the cached templates are created from the templates with the embedded SID the you have a security problem as the users session could be passed to someone else. How do I solve this?

« previous php.smarty.general (#7015) next »