Make cookie object private.
Remove useless paranthesis.
Use unsynchronized StringBuilder instead of StringBuffer.