Answer the question
In order to leave comments, you need to log in
How to identify a user on the site?
How to identify the user on the site, so that he would continue to use it even after restarting the browser
I know that there are cookies that can be created after authorization through a pair of login:password
But isn't it too banal?
Will they substitute another value in cookies?
Or, as an option, make md5 encryption for example a login and create cookies in this way
. Or are there any safer options?
Answer the question
In order to leave comments, you need to log in
Check your soap and password when logging in. If the request to the database returns a false, then there is no such user or the data is incorrect. Well, then cookies and sessions.
Yes, it's trite, all sites do this.
They will set it up for sure, you have to check what is there.
md5 is never encrypted, it's a one-way hash, and not the best.
The safer option is to use ready-made tools created by experienced developers. Judging by the formulation of the question, I would not recommend that you implement such things yourself.
You take a phrase, let's say "login + password + salt", hash it with md5 and put it in cookies. Be sure to check when you enter.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question