**SPIP**
# Article submitted
The article "**\_RENOUVELLE\_ALEA**
(https://www.spip.net/ecrire/?exec=article&id_article=6553)" is submitted
for publication. on Friday 15 May 2020.
* * *
## \_RENOUVELLE\_ALEA
Friday 15 May 2020 , by [jack](.././?page=auteur&id_auteur=593&)
The constant **`_RENOUVELLE_ALEA`** defines the duration of the randomness
for cookies in seconds. In particular, it allows you to modify the duration
of sessions. The default value is 12 hours.
Be aware that on some cookies, a multiple of this value is used (for
example `_RENOUVELLE_ALEA * 4 `)
You can change this duration by customizing the value of the constant in
your file `config/mes_options.php` (see the article dedicated to it
(https://www.spip.net/ecrire/?exec=article&id_article=4654)).
**Example :**
// reduce the session value to one hour
define
(http://www.php.net/define)
(
'_RENOUVELLE_ALEA'
,
3600
)
;
**Warning: ** This constant is a low level constant that can only be
defined in the file `config/mes_options.php`. It is not possible to modify
it in the code of a plugin or a template.
— Sent by SPIP (https://www.spip.net/)
