mardi 28 juillet 2015

php generate token synchronized based on time stamp

this is a question a little complicated, I do not know how I will respond,but i try. how can I generate a random token in php every 30 seconds applies for each client making a request to the server php where is running this script? For example:

User 1 connect to server at 17:30:10 and the token is ABC

User 2 connect to server at 17:30:33 and the token is always ABC

the token must be changed every 30 seconds. how can i implements this?




Aucun commentaire:

Enregistrer un commentaire