Adding cookie auth example

Closes #685