Guys,

this is fairly simple setFlash. But, i wonder why it is now showing up?

A few of my simple auth codes..
<?php
class UsersController extends AppController
{
    var $name = "Users";
    var $helpers = array('Html', 'Form', 'Session');

   ....

    function login()
    {
        if(empty($this->data) == false)
        {
            if(($user = $this->User->validateLogin($this->data['User'])) ==
true)
            {
                $this->Session->write('User', $user);
                $this->Session->setFlash('You\'ve successfully logged in.');
                $this->redirect('/statistics/display');
                exit();
            }
            else
            {
                $this->Session->setFlash('Sorry, the information you\'ve
entered is incorrect.');
                exit();
            }
        }
    }
...
?>

I can successfully login, and it redirects right away. But, i could not see
the flash message. Did, i missed something here?
I am using the latest 1.2.x (pre-beta)

Please help!

-- 
Louie Miranda ([EMAIL PROTECTED])
http://www.axishift.com

Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to