session_cache_expire
Return to the current cache expiration
Function name: session_cache_expire()
Function description: session_cache_expire() is used to get or set the cache expiration time of the current session.
Function parameters: None
Return value: If a new cache expiration time is set, the previous cache expiration time is returned; if a new cache expiration time is not set, the current cache expiration time is returned.
Applicable version: PHP 4.2.0 and above
Usage example:
$cacheExpire = session_cache_expire(); echo "当前会话的缓存过期时间为:{$cacheExpire} 分钟";
$previousExpire = session_cache_expire(60); echo "先前的缓存过期时间为:{$previousExpire} 分钟";
Notes: