Help me, please! | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Help me, please!

Hi! I would like to ask for help in developing the authorization functionality on the website. My goal is to create a mechanism that allows users to save their authentication credentials when navigating between sections of the site. For example, I want the site to remember my credentials when I navigate to another page or section, similar to how it works on the Codeforces platform. On Codeforces, for example, when I read a task and open a new tab, the site still remembers my login. I would like to implement a similar behavior on my site. I would be glad to have your help)

11th May 2024, 7:07 PM
Imeon
Imeon - avatar
2 ответов
+ 1
You'll need to know server-side programming languages like PHP or Node.js and have experience with databases like MySQL or Firebase's Realtime Database. Or you can use a Content Management System (CMS) like WordPress, Joomla, or Drupal. These platforms come with user management and security features built-in, I know this does not explain exactly “how” but it should be enough to get you started with your research.
11th May 2024, 10:36 PM
Chris Coder
Chris Coder - avatar
0
Basically when you login to a website. It creates a new session which is saved into the database and the session id in your browser cookies. On every page request, the backend sees that you have a session id cookie set and uses it to query the session data from the database. If its valid, you will remain logged in.
19th May 2024, 3:25 PM
Toni Isotalo
Toni Isotalo - avatar