JSessionStorageMemcache/gc: Difference between revisions
From Joomla! Documentation
m removing red link to edit, no existant pages |
m preparing for archive only |
||
| Line 44: | Line 44: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=gc | category=gc | ||
category=JSessionStorageMemcache | category=JSessionStorageMemcache | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 01:08, 25 March 2017
Description
Garbage collect stale sessions from the SessionHandler backend.
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
gc($maxlifetime)
| Parameter Name | Default Value | Description |
|---|---|---|
| $maxlifetime | $maxlifetime The maximum age of a session. |
Returns
boolean True on success, false otherwise.
Defined in
libraries/joomla/session/storage/memcache.php
Importing
jimport( 'joomla.session.storage.memcache' );
Source Body
function gc($maxlifetime)
{
return true;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
Code Examples