For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > October 2006 > cookie with empty string as value









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cookie with empty string as value
Trunikov

2006-10-31, 6:55 pm

Hi ALL!
I faced with following problem. I use module CGI::Fast to develop
webapp. With help of this package I can successfully store and retrive
cookies. But I found strange behaviour when stored cookie has empty
string as value. In this case browser sends cookie to CGI (I checked
this with help of HTTP sniffer and in %ENV{HTTP_COOKIE}) but when I try
to get this cookie in my code I retrive not defined value. IMHO this is
wrong behaviour because empty string and not defined cookie are
different things. Can anybody tell me where I wrong?

Best regards,

Dmitry

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com