API16

JSessionStorageXcache/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:JSessionStorageXcac...
 
m preparing for archive only
 
(One intermediate revision by the same user not shown)
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:JSessionStorageXcache/gc|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JSessionStorageXcache/gc}}
 
 


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


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


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=gc
  category=gc
  category=JSessionStorageXcache
  category=JSessionStorageXcache
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 02:05, 25 March 2017

Description

Garbage collect stale sessions from the SessionHandler backend.



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;
}



Examples

Code Examples