Auth component with Logins model

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Auth component with Logins model

Abdelmajid el Ibrahimi

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.

        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.
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
Follow us on Twitter
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 [hidden email].
For more options, visit