Answer the question
In order to leave comments, you need to log in
How to correctly and safely use sessions in conjunction with cookies?
Dear gurus, once again I have to ask you for help!
I'm trying to implement an authentication-authorization mechanism, I've read articles about sessions and cookies, but I still couldn't organize all this information in my head.
Answer the question
In order to leave comments, you need to log in
what to do with users who have cookies disabled?
When making requests, we check the session id in cookies, if not, then we send which label to cookies, we redirect to ourselves + another label to get, if there is a get label and no cookie label, then everything must be transmitted through get and post. I wanted to do this for phones for a long time, but in practice, some phones have just the same glitches at work, 10-15 normal requests, and then there are no cookies. A friend transferred everything to the get and everything worked fine, the only exception is that there is now dangerous data in the get.
In fact, all such old phones use operamini, which does not have such problems. You can completely forget about id-sessions in the get, but at the same time advise operamini if the user logged in from a very old model
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question