I need to logout the current user in my code.
For now I use : user_logout();
but this function seems to have a redirect at the end.
How can I logout a user without any redirect ?
It need to be for a single case, not a hook to every logout.
Thanks.