diff --git a/security.rst b/security.rst index d29f1480f78..3db9857f17a 100644 --- a/security.rst +++ b/security.rst @@ -2503,9 +2503,10 @@ However, in some cases, this process can cause unexpected authentication problem If you're having problems authenticating, it could be that you *are* authenticating successfully, but you immediately lose authentication after the first redirect. -In that case, review the serialization logic (e.g. ``SerializableInterface``) on -you user class (if you have any) to make sure that all the fields necessary are -serialized. +In that case, review the serialization logic (e.g. the ``__serialize()`` or +``serialize()`` methods) on you user class (if you have any) to make sure +that all the fields necessary are serialized and also exclude all the +fields not necessary to be serialized (e.g. Doctrine relations). Comparing Users Manually with EquatableInterface ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~