|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
gremio10 Smarty Rookie
Joined: 28 Jan 2011 Posts: 11
|
Posted: Fri Apr 08, 2011 4:34 pm Post subject: Error cookie logic |
|
|
Hey guys, look, I want to do a login, and use cookies, but, when I use cookie on my PHP, and call on my tpl with $smarty.cookies.myCookie don't show nothing, the same thing with the session.
Code: | {if isset($smarty.cookies.errorCpf)}
{$smarty.cookies.errorCpf}
{/if} |
my PHP:
Code: | setcookie( "errorLogin", "Login ou senha inexistentes", time() + 3600 );
header( "Location: {$Sql->getUrl()}login/" ); |
Thank's |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|