JSessionStorage::gc: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Garbage collect stale sessions from the SessionHandler backend. | Garbage collect stale sessions from the SessionHandler backend. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 29: | Line 29: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Session|Session]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Session|Session]] | ||
* [[API17:JSessionStorage::gc|Other versions of JSessionStorage::gc]] | * [[API17:JSessionStorage::gc|Other versions of JSessionStorage::gc]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JSessionStorage::gc | category=JSessionStorage::gc | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 03:39, 25 March 2017
JSessionStorage::gc
Description
Garbage collect stale sessions from the SessionHandler backend.
public function gc ($maxlifetime=null)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $maxlifetime | integer | null | The maximum age of a session. |
- Returns boolean True on success, false otherwise.
- Defined on line 141 of libraries/joomla/session/storage.php
See also
JSessionStorage::gc source code on BitBucket
Class JSessionStorage
Subpackage Session- Other versions of JSessionStorage::gc
User contributed notes
Code Examples