CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Raw_Cookie

 



LanceLovesJia
New User

Mar 4, 2003, 7:31 PM

Post #1 of 4 (1006 views)
Raw_Cookie Can't Post

can anyone help me with the raw_cookie funciton from cgi.pm module..

im stuck with this :

$raw_cookie = $query->raw_cookie($ENV{'COOKIE'})

print $query->raw_cookie($self=>http('cookie'));

can anyone please help me correct the codes..
thanks


erichmusickwc
Novice

Mar 4, 2003, 8:40 PM

Post #2 of 4 (1001 views)
Re: [LanceLovesJia] Raw_Cookie [In reply to] Can't Post

If you would like to retrieve the value for a cookie with the name mycookie:


Code
my $cookie = $query->cookie('mycookie');



davorg
Thaumaturge / Moderator

Mar 5, 2003, 1:47 AM

Post #3 of 4 (999 views)
Re: [LanceLovesJia] Raw_Cookie [In reply to] Can't Post

Is there a good reason why you'd want to use "raw_cookie" instead of "cookie". It seems to me that "raw_cookie" is almost never useful.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


erichmusickwc
Novice

Mar 5, 2003, 1:36 PM

Post #4 of 4 (994 views)
Re: [davorg] Raw_Cookie [In reply to] Can't Post

Yeah, that's what I was wondering.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives