|
|
Joined: Mar 2000
Posts: 51
Member
|
Member
Joined: Mar 2000
Posts: 51 |
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: i want to add an another veriable to it, anyone which expierence in this would be thanked. i have tried this: and not worked, but i am a bit clueless on what else to try.
|
|
|
|
Joined: Mar 2001
Posts: 335
Member
|
Member
Joined: Mar 2001
Posts: 335 |
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.
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
It's probably also buggy and unreliable.
Use CGI's cookie routines:
[code][/code]
See the UBB for more examples.
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Aug 2000
Posts: 335
Member
|
Member
Joined: Aug 2000
Posts: 335 |
[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.
|
|
|
|
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
|
deutscher moderator / v5 specialist
Joined: Dec 2000
Posts: 730 |
how can i delete a cookie with header(-cookie => [$cookie_token, ], );)??
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Set the cookie to a blank value.
UBB.classic: Love it or hate it, it was mine.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 449
Joined: February 2008
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|