Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create default anonymous users #48650

Unanswered
pcmanprogrammeur asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 1 comment 3 replies

Comment options

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?

You must be logged in to vote
3 replies
Comment options

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.

Comment options

Even if you were to leverage anonymous users, where would their ID come from?

Comment options

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /