You are here

protected function FlagNonGlobalCookieStorage::get_lifetime in Flag 6.2

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

File

./flag.inc, line 1902
Implements various flags. Uses object oriented style inspired by that of Views 2.

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'));
}