Monday, February 29, 2016

Auth component with Logins model

Hello,

I have made a Logins table separate from the Users table. I have changed
'authenticate' => [
                'Basic' => [
                    'userModel' => 'Logins'
                ],
            ]

It works the only problem i have is that the session doesnt get destroyed. I have destroyed it and it shows nothing but something keeps writing the data back to the session. Does somebody know what it is.

       unset($_SESSION);
        return $this->redirect($this->Auth->logout());

I do this and i see that the superglobals Session variable is getting changed and the Auth.User is getting removed but at the end of the script something writes it back.

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: