You are here

protected function FlagNonGlobalCookieStorage::get_lifetime in Flag 7.3

Same name and namespace in other branches
  1. 6.2 flag.inc \FlagNonGlobalCookieStorage::get_lifetime()
  2. 7.2 flag.inc \FlagNonGlobalCookieStorage::get_lifetime()
1 call to FlagNonGlobalCookieStorage::get_lifetime()
FlagNonGlobalCookieStorage::write in includes/flag.cookie_storage.inc

File

includes/flag.cookie_storage.inc, line 139
Contains the FlagCookieStorage class.

Class

FlagNonGlobalCookieStorage
Storage handler for non-global flags.

Code

protected function get_lifetime() {
  return min((int) ini_get('session.cookie_lifetime'), (int) ini_get('session.gc_maxlifetime'));
}