API16

API16:JFactory/getSession

From Joomla! Documentation

Description

Get a session object


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

Syntax

static getSession($options=array())
Parameter Name Default Value Description
$options array() An array containing session options

Returns

object

Defined in

libraries/joomla/factory.php

Importing

jimport( 'joomla.factory' );

Source Body

public static function getSession($options = array())
{
        if (!is_object(JFactory::$session)) {
                JFactory::$session = JFactory::_createSession($options);
        }

        return JFactory::$session;
}


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

Examples

Code Examples