cache and session ID

From: Date: Thu, 03 Apr 2003 21:00:17 +0000
Subject: cache and session ID
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9062@lists.php.net to get a copy of this message
Hello Guys, I have a question regarding Caching and session id. The web site requires to have a valid session_id for members to be able to access to restricted data. To reduce the SQL server load, I use smarty caching for many pages. the overall lifetime is about 1 through 2 hours. many cached pages contain links to internal URL such as : www.domain.tld/page.php/SID/12345 The issue is when a different visitors arrive on the website, HOW can I return the cached page(with an old session_id) with the current session_id (Real time) Please note, I have assign on all my pages the variable SID, for instance : $smarty->assign("SID", $SID); $smarty->display("mytpl.tpl", $identifier); I was thinking about modifying the $smarty->display() function by adding a regex, but this will not be compatible with new smarty version. Please advise. Best regards, Jacques

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