API17:JSessionStorageDatabase::gc
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JSessionStorageDatabase::gc|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JSessionStorageDatabase::gc|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public | + | public function gc ($lifetime=1440) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 27: | Line 24: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' boolean True on success, false otherwise. | |
| − | boolean True on success, false otherwise. | + | * '''Defined''' on line 146 of libraries/joomla/session/storage/database.php |
| − | + | * '''Since''' {{JVer|11.1 }} | |
| − | libraries/joomla/session/storage/database.php | + | |
| − | * | + | |
| − | + | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JSessionStorageDatabase::gc source code''' on [[jplatform:session/storage/database.php#cl-138|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JSessionStorageDatabase/11.1|JSessionStorageDatabase]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Session/11.1|Session]] | ||
| + | * [[JSessionStorageDatabase::gc|Other versions of JSessionStorageDatabase::gc]] | ||
| + | {{SeeAlso:JSessionStorageDatabase::gc}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JSessionStorageDatabase::gc|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JSessionStorageDatabase::gc|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 48: | Line 44: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JSessionStorageDatabase]][[Category:JSessionStorageDatabase::gc]]</noinclude> | <noinclude>[[Category:JSessionStorageDatabase]][[Category:JSessionStorageDatabase::gc]]</noinclude> | ||
Revision as of 21:37, 27 April 2011
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JSessionStorageDatabase::gc
Description
Garbage collect stale sessions from the SessionHandler backend.
Description:JSessionStorageDatabase::gc [Edit Descripton]
public function gc ($lifetime=1440)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $lifetime | integer | 1440 | The maximum age of a session. |
- Returns boolean True on success, false otherwise.
- Defined on line 146 of libraries/joomla/session/storage/database.php
- Since
See also
-
JSessionStorageDatabase::gc source code on BitBucket
-
Class JSessionStorageDatabase
-
Subpackage Session
- Other versions of JSessionStorageDatabase::gc
SeeAlso:JSessionStorageDatabase::gc [Edit See Also]
User contributed notes
<CodeExamplesForm />
