protected function FlagNonGlobalCookieStorage::get_lifetime in Flag 7.2
Same name and namespace in other branches
- 6.2 flag.inc \FlagNonGlobalCookieStorage::get_lifetime()
- 7.3 includes/flag.cookie_storage.inc \FlagNonGlobalCookieStorage::get_lifetime()
1 call to FlagNonGlobalCookieStorage::get_lifetime()
File
- ./
flag.inc, line 1994 - 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'));
}