API16

JSessionStorage: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
No edit summary
m clean up
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
{{subst:Description:JSessionStorage}}
<nowiki>[</nowiki>[[Description:JSessionStorage|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JSessionStorage}}


===Defined in===
===Defined in===
Line 46: Line 43:
<source lang="php">jimport( 'joomla.session.storage' );</source>
<source lang="php">jimport( 'joomla.session.storage' );</source>


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


===Examples===
===Examples===

Revision as of 14:23, 24 March 2017

{{subst:Description:JSessionStorage}}

Defined in

libraries/joomla/session/storage.php

Methods

Method name Description
__construct Constructor
register Register the functions of this class with PHP's session handler
open Open the SessionHandler backend.
close Close the SessionHandler backend.
read Read the data for a particular session identifier from the SessionHandler backend.
write Write session data to the SessionHandler backend.
destroy Destroy the data for a particular session identifier in the SessionHandler backend.
gc Garbage collect stale sessions from the SessionHandler backend.
getInstance Returns a session storage handler object, only creating it if it doesn't already exist.
test Test to see if the SessionHandler is available.

Importing

jimport( 'joomla.session.storage' );


{{subst:SeeAlso:JSessionStorage}}

Examples

<CodeExamplesForm />