API15

JSessionStorage/register

From Joomla! Documentation

< API15:JSessionStorage
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.

Description[edit]

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[edit]

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

Defined in[edit]

libraries/joomla/session/storage.php

Importing[edit]

jimport( 'joomla.session.storage' );

Source Body[edit]

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[edit]

Code Examples[edit]