Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 163337 программистов и 5645 роботов. Сейчас ищут 2984 программиста ...

Auth::setExpire()

Вернуться к: Auth

Auth::setExpire()

Auth::setExpire() – set expiration time for authentication

Synopsis

void Auth::setExpire ( integer $time , boolean $add = false )

With this function you can set the maximum expire time that is used by auth to a new value.

Parameter

integer $time

expiration time, number of seconds

boolean $add

if TRUE $time is added to the existing expiration time, if FALSE the exitsing time value will be replaced.

Note

This function can not be called statically.

Auth uses PHP's session mechanism to recognize users between http calls. Setting Auth's expiry time larger than the session timeout will still expire the session to the time the php session expires.



Вернуться к: Auth

© 2026 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты
Разработка компании ODWR