API16

JUtility/getToken

< API16:JUtility

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

Method to determine a hash for anti-spoofing variable names



Syntax

static getToken($forceNew=false)
Parameter Name Default Value Description
$forceNew false

Returns

string Hashed var name

Defined in

libraries/joomla/utilities/utility.php

Importing

jimport( 'joomla.utilities.utility' );

Source Body

public static function getToken($forceNew = false)
{
        $session = &JFactory::getSession();
        return $session->getFormToken($forceNew);
}



Examples

Code Examples


Advertisement