Skip to main content

Application::useTicket

Use ticket once and destroy ticket session

Description

public void Application::useTicket( string $name )

Use ticket once and destroy ticket session. useTicket will return boolean and will return TRUE only if the value in the hidden input is same with the ticket session in the server. See Application::setTicket.

Arguments

NameData typeDefaultRemarks
$namestringTicket param key

Example

Controller
if($this->useTicket('foo'))
{
//code
}