-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Create default anonymous users #48650
-
Hi all,
I am using the security bundle and i would like to set a default anonymous user in session.
I saw that it was possible in Symfony 4.4 : https://symfony.com/doc/4.4/security.html#3a-authentication-firewalls like the following image shows : https://symfony.com/doc/4.4/_images/anonymous_wdt.png
Is it possible to do the same in recent version please ?
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 3 replies
-
Hi,
anonymous users were removed with the new authentication system introduced in Symfony 5.1: https://symfony.com/doc/5.1/security/experimental_authenticators.html#authenticators-removed-anonymous
That being said it should not cause any issue; what are you trying to achieve?
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @MatTheCat
I want to log all visited pages for my users !
To make that i want a user_id in all my logs and identify all visited pages by user.
Beta Was this translation helpful? Give feedback.
All reactions
-
Even if you were to leverage anonymous users, where would their ID come from?
Beta Was this translation helpful? Give feedback.
All reactions
-
I want to save final users in "users" table and temporary users in "users_temp" table. Each user could have a unique id in all logs.
Beta Was this translation helpful? Give feedback.