JSessionStorageXcache/gc: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Garbage collect stale sessions from the SessionHandler backend.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JSessionStorageXcac... |
m clean up |
||
| Line 2: | Line 2: | ||
Garbage collect stale sessions from the SessionHandler backend. | Garbage collect stale sessions from the SessionHandler backend. | ||
{{Description:JSessionStorageXcache/gc}} | |||
{{subst:Description:JSessionStorageXcache/gc}} | |||
===Syntax=== | ===Syntax=== | ||
| Line 38: | Line 36: | ||
</source> | </source> | ||
{{subst:SeeAlso:JSessionStorageXcache/gc}} | |||
{{SeeAlso:JSessionStorageXcache/gc}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 14:25, 24 March 2017
Description
Garbage collect stale sessions from the SessionHandler backend.
{{subst:Description:JSessionStorageXcache/gc}}
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/xcache.php
Importing
jimport( 'joomla.session.storage.xcache' );
Source Body
function gc($maxlifetime)
{
return true;
}
{{subst:SeeAlso:JSessionStorageXcache/gc}}
Examples
<CodeExamplesForm />