API16

API16:JSessionStorage/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:JSessionStorage/gc|...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Garbage collect stale sessions from the SessionHandler backend.

[Edit Descripton]

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

Importing

jimport( 'joomla.session.storage' );

Source Body

function gc($maxlifetime)
{
        return true;
}

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

Examples

<CodeExamplesForm />