From 9d7806f1f49ee108303efe90a7f4b56d495b56a8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 27 Jun 2015 21:26:05 +0200 Subject: [PATCH] Tag class as deprecated --- htdocs/core/class/cookie.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/cookie.class.php b/htdocs/core/class/cookie.class.php index 52385155c33..b7125008d89 100644 --- a/htdocs/core/class/cookie.class.php +++ b/htdocs/core/class/cookie.class.php @@ -23,8 +23,11 @@ /** - * \class DolCookie - * \brief Class to manage cookies + * Class to manage cookies. + * This class is used by external module multicompany but will be removed soon only and must not be used by + * + * @deprecated PHP already provide function to read/store a cookie. No need to use a dedicated class. Also storing sensitive information into cookie is forbidden, so encryption is useless. + * If a data is sensitive, it must be stored into database (if we need a long term retention) or into session. */ class DolCookie {