> 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

![](https://879096944-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5_mFcvcxsA3M1QhbWd%2Fsync%2F155cf5de796791e7dd7ec10dd04c41875b5f9d40.png?generation=1609473965892830\&alt=media)
