where should i store user data when user disable cookies from their browser and developer is not allowed for using Session [closed]
where should i store user data when user disable cookies from their browser and developer is not allowed for using Session [closed]
Where should I store user data when the user disable cookies from their browser and the developer is not allowed to use Sessions?
This question was asked when I was going through an interview for a PHP developer job, please help me.
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
2 Answers
2
You can serve a Browser token, it means that the user whenever he interacts with the website needs to add a specific token to the url like ?toke=xyz.
(you can also add it over your code to each link and form)
You need then just to check this token with your database and see if teh user have a valid session. (Tokens should be deleted if older that x days)
Also you can use client browser database.
cio.com/article/2382838/enterprise-browsers/…
– coder
Sep 11 '18 at 18:02