This is a question about generating CSRF tokens.
Usually I\'d like to generate a token based off of a unique piece of data associated with the user\'s session, and h
Try base64_encode(openssl_random_pseudo_bytes(16)). https://github.com/codeguy/php-the-right-way/issues/272#issuecomment-18688498 and I used it for my form example in https://gist.github.com/mikaelz/5668195
base64_encode(openssl_random_pseudo_bytes(16))