Setting session variable from template?

From: Date: Sat, 20 Sep 2003 20:05:13 +0000
Subject: Setting session variable from template?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10248@lists.php.net to get a copy of this message
I'm trying to find a way to set a session variable from within a template. I've tried {php} $_SESSION['selected_id'] = "$selected_id"; {/php} and {assign var="smarty.session.id" value="Bob"} Neither works. Is there a way to do this? Thanks! John

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