API16

JSession/isNew

< 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

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;
}



Examples

Code Examples


Advertisement