Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: server side cookie handling example ...

From: petr:krenzelok:trz:cz at: 3-Mar-2003 18:13

Christopher Ross-Gill wrote:
>Hi Petr, > >>has anyone example of server side cookie handling? I have cookie string >>building func from Maarten's rugby, get-cookie func, but I somehow miss >>what to do to send it back to browser :-) >> >> > >Cookies are sent as an HTTP header. > >Set-Cookie: NAME=VALUE; expires=DATE; path=PATH; domain=DOMAIN_NAME; secure > >Here's a reference: > >- Chris >
OK, thanks a lot ... my problem was I didn't understand when/where should I put it in my CGI script to be part of header. Now I seem to have it running. Few questions though - - have you used multiple cookies? What is the format please? I don't understand it from the doc - should I issue two separate "Set-Cookie: ..." sequences, or just use several name=value pair with one Set-Cookie: ... sequence? - maybe I have incorrectly understood checksum/secure. I wanted to use it to generate securely unique IDs, but once I give it the same value, it returns the same result ... that way I cannot regard following being secure enough to generate id: checksum/secure mold now/time/precise ... but then it can be my incorrect understanding of checksum/secure functionality. ... -pekr-