Make sure you don't log out, otherwise yeah, it'll kill the session.
Look at the docs, to go back to the original user you use: Auth::user()->leaveImpersonation();
To implement an authenticate as other users mechanism in laravel, I'm using 404labfr/laravel-impersonate package.
Impersonate as other users works fines. But after a impersonated user logs out parent user (impersonator user) logs out too , while I'm looking for a solution that after impersonated user logouts go back to impersonator user session.
It even seems there is not any built-in method for that.
Anyway, Now I don't know how can I solve this problem. if anyone knows please help me.
Please or to participate in this conversation.