I need to generate key with php and store it in file or MySQL DB
and every connection to server to be validated by this key
This key should be used only once and after validating current connection this key will be invalid for other connection.
I have load balancer running now. I must continue use it
What should i use to do that?