B
B
borisovdenis2017-07-25 08:26:12
Django
borisovdenis, 2017-07-25 08:26:12

What is the best way to implement the "share by link" feature?

There is a Web application that provides an electronic schedule service. The application has a "share schedule" function, which assumes the following logic of work: the owner of the schedule opens access to the schedule via a link, then distributes this link in any convenient way. A person who wants to view the schedule clicks on the link, if he is authorized, then everything is simple, he gets to the page where the choice of "agree" or "reject" is offered. Clicks "agree" - the schedule is added, clicks "reject" - it is simply transferred to the application's home. But if the person who tries to follow the link is not authorized or not registered at all, then the question arises of how to store the state. Those. a person must follow the link,
As a result, two questions:
1. How to generate such links correctly?
2. How to properly store user state?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question