english/libraries/joomla/session/session.php
/**
	 * Method to determine if a token exists in the session. If not the
	 * session will be set to expired
	 *
	 * @param   string   $tCheck       Hashed token to be verified
	 * @param   boolean  $forceExpire  If true, expires the session
	 *
	 * @return  boolean
	 *
	 * @since   11.1
	 */
Method to determine if a token exists in the session. If not the
session will be set to expired

@param   string   $tCheck       Hashed token to be verified
@param   boolean  $forceExpire  If true, expires the session

@return  boolean


Method to determine if a token exists in the session . If not the session will be set to expired @param string $tCheck Hashed token to be verified @param boolean $forceExpire If true expires the session @return boolean
public function hasToken($tCheck, $forceExpire = true)
	{
		$tStored = $this->get('session.token');
		if (($tStored !== $tCheck)) {
			if ($forceExpire) {
				$this->_state = 'expired';
			}
			return false;
		}
		return true;
	}
public function hasToken ( $ tCheck , $ forceExpire = true ) { $ tStored = $ this -> get ( 'session.token' ) ; if ( ( $ tStored !== $ tCheck ) ) { if ( $ forceExpire ) { $ this -> _state = 'expired' ; } return false ; } return true ; }
Method to determine if a token exists in the session.
Method to determine if a token exists in the session .
// check if a token exists in the session //check token