Actions

API15

JSessionStorage/register

From Joomla! Documentation

< API15:JSessionStorage
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

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

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')
        );
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />