API16

JSessionStorageApc/gc: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Garbage collect stale sessions from the SessionHandler backend. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JSessionStorageApc/...
 
m clean up
Line 2: Line 2:
Garbage collect stale sessions from the SessionHandler backend.
Garbage collect stale sessions from the SessionHandler backend.


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JSessionStorageApc/gc|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JSessionStorageApc/gc}}
 
{{subst:Description:JSessionStorageApc/gc}}


===Syntax===
===Syntax===
Line 38: Line 36:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JSessionStorageApc/gc|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JSessionStorageApc/gc}}
</span>
{{SeeAlso:JSessionStorageApc/gc}}


===Examples===
===Examples===

Revision as of 14:24, 24 March 2017

Description

Garbage collect stale sessions from the SessionHandler backend.


{{subst:Description:JSessionStorageApc/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/apc.php

Importing

jimport( 'joomla.session.storage.apc' );

Source Body

function gc($maxlifetime)
{
        return true;
}


{{subst:SeeAlso:JSessionStorageApc/gc}}

Examples

<CodeExamplesForm />