Fixing cookie service as well

Was generating cookies with mixed paths (/ and relative).