API16

API16:JSessionStorageEaccelerator/gc

From Joomla! Documentation

Revision as of 22:38, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Garbage collect stale sessions from the SessionHandler backend. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JSessionStorageEacc...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Garbage collect stale sessions from the SessionHandler backend.

[Edit Descripton]

Template:Description:JSessionStorageEaccelerator/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/eaccelerator.php

Importing

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

Source Body

function gc($maxlifetime)
{
        eaccelerator_gc();
        return true;
}

[Edit See Also] Template:SeeAlso:JSessionStorageEaccelerator/gc

Examples

<CodeExamplesForm />