Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Error cookie logic

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
gremio10
Smarty Rookie


Joined: 28 Jan 2011
Posts: 11

PostPosted: Fri Apr 08, 2011 4:34 pm    Post subject: Error cookie logic Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP