API15

JSession/getId

From Joomla! Documentation

< API15:JSession
Revision as of 17:17, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Get session id <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Des...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]

Get session id

[Edit Descripton]

Template:Description:JSession/getId

Syntax[edit]

getId()


Returns[edit]

string The session name

Defined in[edit]

libraries/joomla/session/session.php

Importing[edit]

jimport( 'joomla.session.session' );

Source Body[edit]

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

[Edit See Also] Template:SeeAlso:JSession/getId

Examples[edit]

<CodeExamplesForm />