The getFingerPrint Method

Read the comment, then the code... If you can't see what's so fundamentally wrong with this then please, never come here again, you're barred!

/**
* getFingerPrint
* 
* The getFingerPrint method allows us to create a string based 
* on the users HTTP_USER_AGENT and a SALT.
* 
* By checking this we can ensure that we are dealing with the 
* same user each time.
* 
*/
public static function getFingerPrint() { 
    return md5($_SERVER['HTTP_USER_AGENT'] . "|primo");        
}

I found this wonder of modern development today... Luckily an extensive search of the codebase found it wasn't used, anywhere! What strikes me as concerning is that some monkey wrote it in the first place with the intention of using it.

March 18, 2013 |
Tags : php work development

Comments Section

Feel free to comment on the post but keep it clean and on topic.

comments powered by Disqus

About Me

Garry Welding Tried my hand at the start-up scene with 650hours and I'm a maintainer of a few of my own open-source projects. For now I'm now taking it easy working a cushy employee lifestyle with Mamas & Papas, one of the largest children's retailers in the UK.

gkwelding.github.com