I'm currently working on developing an app that will not only accept
user registrations, but will allow visitors to go through almost the
entire flow of the site without creating an account or logging in. Our
design ideas look something like this (suggestions/improvements
welcome):

* When a user logs in to their account, data will be persisted to the
user/related entities as normal

* When an anonymous user hits the site for the first time, an
"anonymous user entity" is created for them as if they'd registered,
but with something like USER_<session_id> as an identifier instead of
a personalized username. Any activity they perform on the site is
persisted to this anonymous user entity

* When an anonymous user chooses to register, their anonymous user
entity is upgraded to a registered user entity, preserving their data
for future use

* If an anonymous user leaves the site without registering, the
anonymous user entity should be cleared after a while to prevent
buildup of dead data

What's the best way to go about this?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to