Php generates a unique identifier for the client

the business allows customers to apply for authorization. Only when authorized can customers access our website on the computer applying for authorization. Originally, we wanted to use js to obtain the mac address of the client, but this js can only be implemented under ie. Companies want to achieve this function under mainstream browsers. So, the acquisition method of mac address is not good, so I want to generate a unique identifier on the client instead. That is, when the customer applies for authorization, he will generate a file locally with his unique identifier, and every time he logs in, he will insist that the contents of this file are consistent with those in the database, but this js is not feasible either. Non-ie browsers cannot get the permission to read the file, so is there any other way to generate a unique identifier?

Jan.20,2022

PHP is a back-end language and cannot participate in client operations. JS in the case of no plug-ins, due to permission problems, can only obtain browser information, so there is no way to authorize a computer, can only authorize a browser.

therefore, a uuid can only be generated when the user is authorized and then written to cookie or the browser cache to authorize a browser.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e57e66-4547f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e57e66-4547f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?