Re: session_id() how to get?

From: Date: Thu, 21 Mar 2002 14:58:47 +0000
Subject: Re: session_id() how to get?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3189@lists.php.net to get a copy of this message
On 21 marca 2002 at 15:45:43 Andrei Zmievski <andrei@ispi.net> wrote: >> I would like to propagate is through URL. But how if I cannot receive >> session id? I do not want to use more php code. I would like to get it >> from tpl only. > Then it's not possible unless you embed PHP code into the template. You > need to bootstrap the initial template somehow. index.php: <?php require_once "Smarty.class.php"; $itsSmarty = new Smarty; $itsSmarty->display("Main.tpl"); ?> Main.tpl: <a href="other.php?sid={$smarty.request.sid}other</a> The solution was: $smarty.request.sid -- JZ

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