librelist archives

« back to archive

Logout view

Logout view

From:
Loic d'Anterroches
Date:
2012-03-02 @ 20:43
Hello,

for info, this is login out a user:

    public function logout($request, $match)
    {
        $key = Conf::f('auth_session_key', '_auth_user_id');
        unset($request->session[$key]);

        return new Redirect(URL::forView('baregit_home'));
    }

but it is not removing the session. The user will keep "travelling" on
the website with the session attached to him but will be considered as
anonymous by the system.

loïc