UBB.Dev
Posted By: Andrew CGI cookie setting code, help? - 12/01/2001 12:17 AM
hiya, ok, i am messing with cookies for the first time in cgi, all is going fine, but i can't seem to be able to set more than 1 variable in the Set-Cookie command:

Code
code:

i want to add an another veriable to it, anyone which expierence in this would be thanked.

i have tried this:

Code
code:

and not worked, but i am a bit clueless on what else to try.
Posted By: CNCR Re: CGI cookie setting code, help? - 01/19/2002 4:01 AM
i like using Matt Cookies Archive thing, you can find that at: http://cgi.resourceindex.com i find it less messing about and quicker than writing your own cookies.
Posted By: Charles Capps Re: CGI cookie setting code, help? - 01/19/2002 5:52 AM
It's probably also buggy and unreliable.

Use CGI's cookie routines:

[code][/code]

See the UBB for more examples.
Posted By: Dave_L Re: CGI cookie setting code, help? - 01/19/2002 8:31 PM
[code][/code]

Another thing to consider. If these cookies are set under the same conditions, it may be better to combine the information into a single cookie, rather than cluttering up people's computers with lots of cookies. In Perl, this is very easy to do with join and split.
Posted By: joking-down Re: CGI cookie setting code, help? - 01/20/2002 3:55 AM
how can i delete a cookie with header(-cookie => [$cookie_token, ], );)?? [Linked Image]
Posted By: Charles Capps Re: CGI cookie setting code, help? - 01/20/2002 4:13 AM
Set the cookie to a blank value.
© UBB.Developers