previousAuth::setAllowLogin() (Previous) (Next) Auth::setAuthData()next

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Auth::setAuth()

Auth::setAuth() – 特定のユーザをログイン済みとして扱う

Synopsis

void Auth::setAuth ( string $username )

Description

指定したユーザが、そのセッションでログイン済みであるとして扱います。 通常は内部的に使用するものですが、この関数を使用してログイン情報を詐称することも可能です。

Parameter

string $name

データフィールドの名前。

Note

This function can not be called statically.

この関数は session_regenerate_id() をコールします。 そのため、セッション固定攻撃 (session fixation attack) を防ぐことができます。

previousAuth::setAllowLogin() (Previous) (Next) Auth::setAuthData()next

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.