Skip to content

Instantly share code, notes, and snippets.

@vvtommy
Created June 30, 2015 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vvtommy/f4d9f690a7dafa89caea to your computer and use it in GitHub Desktop.
Save vvtommy/f4d9f690a7dafa89caea to your computer and use it in GitHub Desktop.
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