Previous Thread
Next Thread
Print Thread
Rate Thread
#103667 04/03/2002 6:38 AM
Joined: Mar 2002
Posts: 45
Member
Member
Offline
Joined: Mar 2002
Posts: 45
i need to make a script that will grab the cookie, the whole cookie, and nothing but the cookie...

haven't done much perl for a while and im not sure if you can do it

i need to write it to a file...

Sponsored Links
#103668 04/03/2002 7:34 AM
Joined: Aug 2000
Posts: 335
Member
Member
Offline
Joined: Aug 2000
Posts: 335
The easiest way is to use CGI::Cookie .

#103669 04/03/2002 4:06 PM
Joined: Mar 2002
Posts: 45
Member
Member
Offline
Joined: Mar 2002
Posts: 45
okay, but how do i use that to grab the WHOLE cookie, not just a single value...

i tried: %cookies = parse CGI::Cookie($ENV{COOKIE});

but im not quite sure if that does it, AND i dont exactly know how to get all the data from that without knowing a value...

#103670 04/03/2002 6:15 PM
Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
now you can use
[code][/code]to print all values on the screen...

#103671 04/03/2002 7:00 PM
Joined: Aug 2000
Posts: 335
Member
Member
Offline
Joined: Aug 2000
Posts: 335
1) I'm not sure what you mean by the whole cookie. A cookie provided by a browser consists of a name and a value.

2) You should be able to use the fetch method, rather than the parse method on the environment variable.

3) I believe you need to use the value method to get the cookie's value from the hash value.

[code][/code]

Sponsored Links
#103672 04/03/2002 7:01 PM
Joined: Aug 2000
Posts: 335
Member
Member
Offline
Joined: Aug 2000
Posts: 335
duplicate post


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
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
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,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)