API15

Difference between revisions of "JSessionStorage"

From Joomla! Documentation

m (clean up)
m (preparing for archive only)
 
Line 1: Line 1:
{{subst:Description:JSessionStorage}}
 
 
 
===Defined in===
 
===Defined in===
 
libraries/joomla/session/storage.php
 
libraries/joomla/session/storage.php
Line 44: Line 42:
  
  
{{subst:SeeAlso:JSessionStorage}}
+
 
  
 
===Examples===
 
===Examples===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
  noresultsheader=\n
 
  noresultsheader=\n
 
  category=JSessionStorage
 
  category=JSessionStorage
  category=CodeExample
+
  namespace=CodeExample
 
  category=ClassExample
 
  category=ClassExample
 
  include=*
 
  include=*
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>

Latest revision as of 20:06, 24 March 2017

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Defined in[edit]

libraries/joomla/session/storage.php

Methods[edit]

Method name Description
__construct Constructor
getInstance Returns a reference to a session storage handler object, only creating it if it doesn't already exist.
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.
test Test to see if the SessionHandler is available.

Importing[edit]

jimport( 'joomla.session.storage' );



Examples[edit]

Code Examples[edit]