Cakephp 4.x Destroying Session Auth

Can someone help me with this one, Destroying and deleting Auth and session is not working.
Auth component has still the Users Information.


Shouldn’t you delete before destroying? I’ve never had need to destroy a session like this. Is it an attempt to log the user out?

Yup. Is there easier way to logout the current user ?

What are you using to manage authentication? Old component? New plugin? Something else?

Im using the old one Auth component

So, like this?

Yup . It is working fine now . thanks @Zuluru