**SPIP**
# Article submitted
The article "** \_PREVIEW\_TOKEN**
(https://www.spip.net/ecrire/?exec=article&id_article=6552)" is submitted
for publication. on Thursday 14 May 2020.
* * *
## \_PREVIEW\_TOKEN
Thursday 14 May 2020 , by [jack](.././?page=auteur&id_auteur=593&)
The constant **`_PREVIEW_TOKEN`** allows to share a preview url.
The constant **`_PREVIEW_TOKEN`** allows an author to share his or her
preview right. He or she can communicate a specific url that gives access
to the preview without the need to be authenticated.
This url allows access to the preview page during a time interval ranging
(by default) from 12 hours to 24 hours [1] .
By default, this constant is not defined.
So that this possibility is taken into account it is necessary to define
the constant **`_PREVIEW_TOKEN`** in your file `config/mes_options.php`
(see the article which is dedicated
(https://www.spip.net/ecrire/?exec=article&id_article=4654)).
Example :
// share the preview of an article in progress
// with visitors who have been given a specific url.
define
(http://www.php.net/define)
(
'_PREVIEW_TOKEN'
,
true
)
;
**Caution:**
If **`_PREVIEW_TOKEN`** allows to share the reading of an article in
progress without having to "propose it for publication", it also allows a
visitor who has a valid token (to whom has been communicated a shared url)
to view **all** the articles in progress and *not only those of the author
who provided the token*.
[1] The preview duration depends on the constant [\_RENOUVELLE\_ALEA
(https://www.spip.net/ecrire/?exec=article&id_article=5716) and varies
between 1 and 2 times the value of this constant.
— Sent by SPIP (https://www.spip.net/)
