File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -2666,11 +2666,6 @@ You can use ``IS_AUTHENTICATED`` anywhere roles are used: like
2666
2666
user that has logged in will have this. Actually, there are some special attributes
2667
2667
like this:
2668
2668
2669
- * ``IS_AUTHENTICATED_REMEMBERED ``: *all * logged in users have this, even
2670
- if they are logged in because of a "remember me cookie". Even if you don't
2671
- use the :doc: `remember me functionality </security/remember_me >`,
2672
- you can use this to check if the user is logged in.
2673
-
2674
2669
* ``IS_AUTHENTICATED_FULLY ``: This is similar to ``IS_AUTHENTICATED_REMEMBERED ``,
2675
2670
but stronger. Users who are logged in only because of a "remember me cookie"
2676
2671
will have ``IS_AUTHENTICATED_REMEMBERED `` but will not have ``IS_AUTHENTICATED_FULLY ``.
@@ -2683,6 +2678,15 @@ like this:
2683
2678
:doc: `impersonating </security/impersonating_user >` another user in this
2684
2679
session, this attribute will match.
2685
2680
2681
+ .. note ::
2682
+
2683
+ All logged in users also have an attribute called ``IS_AUTHENTICATED_REMEMBERED ``,
2684
+ even if the application doesn't use the Remember Me feature. This attribute
2685
+ exists for backward-compatibility reasons with Symfony versions prior to 6.4.
2686
+
2687
+ This attribute behaves the same as ``IS_AUTHENTICATED ``. That's why in modern
2688
+ Symfony applications it's recommended to no longer use ``IS_AUTHENTICATED_REMEMBERED ``.
2689
+
2686
2690
.. _user_session_refresh :
2687
2691
2688
2692
Understanding how Users are Refreshed from the Session
You can’t perform that action at this time.
0 commit comments