PEAR Manual
Prev |  | Next

# Auth::setExpire()

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

## Synopsis

``void Auth::setExpire` (integer $time [, boolean $add = `FALSE`])`

## Description

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.

Prev | Home | Next
Auth::setShowLogin() | Up | Auth::setIdle()