Re: session_id() how to get?

From: Date: Thu, 21 Mar 2002 14:34:41 +0000
Subject: Re: session_id() how to get?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3180@lists.php.net to get a copy of this message
p> I want to use session_id() in Smarty but I do not know how to get p> it directly. p> {$smart.session.variable} works with session variables, not with p> the id. I need it to add to my urls. The session ID is not available directly as a variable, so you can't get it that way. You just gotta add somewhere $tpl->assign('PHPSESSID', session_id()); (i add it in my $tpl->auto_prepend_file) Bertrand

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