Actions

API16

JSession/getName

< API16:JSession

The "API16" 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

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


Advertisement