Refactored CookieAuthenticate
Merge pull request #4 from ADmad/master

Refactored CookieAuthenticate