Auth::setAuth() – set a specific user to be marked as logged in


void Auth::setAuth ( string $username )


Mark the session up to indicate that the username supplied has successfully logged in. Although normally used for internal purposes this function can be used to fake a login.


string $name

the name of the data field


This function can not be called statically.

This function will also call session_regenerate_id() so as to prevent session fixation attacks.

Controls if the user will be allowed to login. Turned on by default (Previous) store extra information with the Auth session (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.