Good day!
Need help with this question:
There is a function of private messages on the site, after each message a notification comes to the user by email. From this message, you can click on the "read" link, which leads to a dialogue on the site. BUT the problem is that if the user has ended the session, then he will simply be thrown to 404 error.
The question is: how to make a SECURE link, so that if a user is logged out on the site, he will log in automatically.
I do not need a ready-made solution, I would like to know who did what to secure the system, maybe the link should be 1-time, after the transition it became inactive?