API16

JFactory/getSession: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Get a session object <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </spa...
 
m preparing for archive only
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
Get a session object
Get a session object


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JFactory/getSession|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JFactory/getSession}}
 
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 42: Line 40:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JFactory/getSession|Edit See Also]]<nowiki>]</nowiki>
<! removed transcluded page call, red link never existed >
</span>
{{SeeAlso:JFactory/getSession}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=getSession
  category=getSession
  category=JFactory
  category=JFactory
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API16]]

Latest revision as of 01:39, 25 March 2017

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