Saving cookies should work now.

Hi, I tried to use your lib but when used cookie storage the values were wrong. I fixed the code so cookies are created correctly. 
Cheers,
Ondrej