Auth::logout()

Auth::logout() – 認証済みのユーザをログアウトさせる

Synopsis

void Auth::logout ( )

Description

現在ログイン中のユーザをログアウトさせます。

Note

This function can not be called statically.

ユーザの一覧を取得する (Previous) ユーザアカウントを削除する (Next)
Last updated: Fri, 19 Dec 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

Note by: kbailey@freewayprojects.com
Just thought I'd mention that the logout function does not seem to unset the $_SESSION variables.

To unset all $_SESSION variables I used

session_unset();

just before the

a->logout();

call.

Please see

http://uk2.php.net/manual/en/function.session-unset.php

for details RE using session_unset().