Actions

API16

JSessionStorage/register

From Joomla! Documentation

< API16:JSessionStorage
Revision as of 17:38, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
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.

Contents

Description

Register the functions of this class with PHP's session handler

[Edit Descripton]

Description:JSessionStorage/register

Syntax

register($options=array())
Parameter Name Default Value Description
$options array() $options optional parameters

Defined in

libraries/joomla/session/storage.php

Importing

jimport( 'joomla.session.storage' );

Source Body

function register($options = array())
{
        // use this object as the session handler
        session_set_save_handler(
                array($this, 'open'),
                array($this, 'close'),
                array($this, 'read'),
                array($this, 'write'),
                array($this, 'destroy'),
                array($this, 'gc')
        );
}

[Edit See Also] SeeAlso:JSessionStorage/register

Examples

<CodeExamplesForm />