API16:JSession/isNew
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Contents |
Description
Check whether this session is currently created
Syntax
isNew()
Returns
boolean True on success.
Defined in
libraries/joomla/session/session.php
Importing
jimport( 'joomla.session.session' );
Source Body
public function isNew() { $counter = $this->get('session.counter'); if ($counter === 1) { return true; } return false; }
[Edit See Also] SeeAlso:JSession/isNew
Examples
<CodeExamplesForm />
