Re: session_id() how to get?
| From: | Monte Ohrt | Date: | Thu, 21 Mar 2002 14:50:14 +0000 |
| Subject: | Re: session_id() how to get? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3187@lists.php.net to get a copy of this message | ||
One solution would be to drop in a plugin:
function.sessionid.php
----------------------
function smarty_function_sessionid() {
echo session_id();
}
index.tpl
---------
current session is {sessionid}
programisci_listy wrote:
>
> On 21 marca 2002 at 15:38:33
> Andrei Zmievski <andrei@ispi.net>
> wrote:
>
> > Is your session propagated by cookies or through URL?
>
> 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.
>
> --
> Jarek
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
Director of Technology, ispi Inc.