Hello, is it possible to send certain users to a page once they have logged in?
(EG: When USER 1 logs in, it sends them to "Page 1" and when USER 6 logs in, it sends them to "Page 2") If so, how can I do it?
Hello, is it possible to send certain users to a page once they have logged in?
(EG: When USER 1 logs in, it sends them to "Page 1" and when USER 6 logs in, it sends them to "Page 2") If so, how can I do it?
Hi Aaron,
Just to add.
It's important to consider the case USER1 logged out and then USER3 logged in, and define app behaviour in this case.
You can have a separate database collection for authorized users, and store in it the login date and time and, for example, the name of the page where a user was sent. You should specify the time after which the authorization is no longer valid. By default, the standard lifetime of the session authorization is 2 hours. That is, all records older than 2 hours should be removed to not clutter up the database. This can be done right after the logging in.
Your application gets a list of logged in users and screens available to them and decide which screen to show the new user, and then writes information about it in the same collection.
It's also possible to use an only page instead, just changing data on it.