I am setting a cookie as response.cookies("ucode") = "anand"

and i am trying to retrieve it in the next page . It is getting reflected in the next page only some times.
I don't know what do to. i am using the st. response.write request.cookies("ucode")