API16

JSession/getName: Difference between revisions

From Joomla! Documentation

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


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


{{Description:JSession/getName}}
 
 


===Syntax===
===Syntax===
Line 32: Line 30:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JSession/getName|Edit See Also]]<nowiki>]</nowiki>
 
</span>
{{SeeAlso:JSession/getName}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=getName
  category=getName
  category=JSession
  category=JSession
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 02:03, 25 March 2017

Description

Get session name



Syntax

getName()


Returns

string The session name

Defined in

libraries/joomla/session/session.php

Importing

jimport( 'joomla.session.session' );

Source Body

public function getName()
{
        if ($this->_state === 'destroyed') {
                // @TODO : raise error
                return null;
        }
        return session_name();
}



Examples

Code Examples