Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nginx User ID Decoder for PHP
function nginxUserIdDecoder($userIdInCookie){
return join(array_map(function($i){return strtoupper(dechex($i));},unpack("L*", base64_decode("wKjHwFWR6Ka5RHopAwMNAg=="))), "");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment