> For the complete documentation index, see [llms.txt](https://xoops.gitbook.io/xoops-modules-cookbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xoops.gitbook.io/xoops-modules-cookbook/form-classes/forms/xoopsformhiddentoken.md).

# XoopsFormHiddenToken

**Definition**

```php
function XoopsFormHiddenToken($name = 'XOOPS_TOKEN_REQUEST', $timeout = 360)
```

**Usage**

This class is a subclass to XoopsFormHidden that only has a constructor for building a XoopsFormHidden object with a name and a token value generated by the XoopsSecurity class.

The name value defaults to XOOPS\_TOKEN\_REQUEST and the second parameter controls how long (in seconds) the token is valid

![](/files/-MPw6uFHtgJYPviIeMVD)
