You are here

function session_cache_expiration_time in Session Cache API 8

Same name and namespace in other branches
  1. 6 session_cache.module \session_cache_expiration_time()
  2. 7 session_cache.module \session_cache_expiration_time()
2 calls to session_cache_expiration_time()
session_cache_get_sid in ./session_cache.module
Returns an identifier for the current user session.
session_cache_set in ./session_cache.module
Write the supplied data to the user session, whatever the storage mechanism may be.

File

./session_cache.module, line 144
session_cache.module

Code

function session_cache_expiration_time() {
  $expire_period_days = config('session_cache.settings')
    ->get('expire_period') ?: SESSION_CACHE_DEFAULT_EXPIRATION_DAYS;
  return REQUEST_TIME + 24 * 60 * 60 * $expire_period_days;
}