API15:JFactory/getSession
From Joomla! Documentation
Description
Get a session object
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
& 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
function &getSession($options = array())
{
static $instance;
if (!is_object($instance)) {
$instance = JFactory::_createSession($options);
}
return $instance;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
Code Examples