JSession/getId
From Joomla! Documentation
< 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[edit]
Get session id
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]
public function getId()
{
if ($this->_state === 'destroyed') {
// @TODO : raise error
return null;
}
return session_id();
}
Examples[edit]
Code Examples[edit]