Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2000
Posts: 51
A
Andrew Offline OP
Member
OP Offline
Member
A
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:

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.

Sponsored Links
Joined: Mar 2001
Posts: 335
C
Member
Offline
Member
C
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
Offline
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
D
Member
Offline
Member
D
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
J
deutscher moderator / v5 specialist
Offline
deutscher moderator / v5 specialist
J
Joined: Dec 2000
Posts: 730
how can i delete a cookie with header(-cookie => [$cookie_token, ], );)?? [Linked Image]

Sponsored Links
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Offline
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.

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,569
Posts293,914
Members13,847
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,829
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 81
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2022 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20220917)