Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17170 программистов и 1833 робота. Сейчас ищут 1699 программистов ...
Auth::setSessionName()
Вернуться к: Auth
Auth::setSessionName()
Auth::setSessionName() – set a custom name for the Auth session variable
Synopsis
void Auth::setSessionName ( string $name )
This function is used to set the name of the session variable used to store the user's authentication details. The default for the session variable name is _authsession.
Parameter
- string $name
-
the session variable name to use
Note
This function can not be called statically.
You have to use setSessionName(), if you are running two or more different applications with Auth on the same domain. If you don't use this function, a user who has once logged in at one of the applications can also use the other applications without logging in again!
Вернуться к: Auth