Lazy Registration: How to allow a guest user to start their workflow and request registration when they try to save their work?

I am interested in what I would do to allow a guest to use my web application without registration, and then, if they try to save their work, they will be offered registration. By the way, this will be in the rails application. Is it possible to allow public access to part of the workflow, and then, when they keep checking, are they a registered user (by session value or cookie?). If they are not a registered user, save all your work in the session and let them fill out an extract form. Upon successful registration, automatically register them and initiate creation on db?

+5
source share
1 answer

You will need to track the data in the session. Some people suggest creating a module or library for processing data within a session. For example, you might have a SessionCart class that deals with cart items in a session.

The moment a person decides to become a user, you can save some data in a cookie if you need to recreate a session.

+1
source

All Articles