D
D
Dmitry2019-06-17 14:48:39
Yii
Dmitry, 2019-06-17 14:48:39

How to make id_guest integer for each user in YII2 to write in cookie?

It is necessary for each user to give his unique guest id when entering the site, tell me how to do it correctly!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2019-06-17
@BorisKorobkov

Do you have a rubber database? Imagine that a shkolota comes to your site to automatically search for vulnerabilities. They do not save cookies, each request for you will be supposedly a new guest. Millions of new id_guests per day - do you need it?
If you're really impatient, use Browser Fingerprint .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question