okwx
08-30-2007, 06:12 AM
Hi all,
I'm attempting to use CGI::Session to save state variables with a CGI.pm form script I have. In some initial test code I've written, whenever I drop the session ID as a cookie using the following code:
print $query->header( -cookie=>$cookie );
I see the following text displayed on the top of the form in my browser:
Expires: Wed, 29 Aug 2007 02:47:18 GMT Date: Thu, 30 Aug 2007 02:47:18 GMT Cache: no Content-Type: text/html; charset=ISO-8859-1
My question: Is there any way to supress the printing of this text to the browser window when the cookie is set? I know CGI.pm is returning http headers when setting the cookie, but I figure there has to be a way to keep this from showing up on my user's forms, unless I'm missing something or misunderstanding.
Thanks for any help.
I'm attempting to use CGI::Session to save state variables with a CGI.pm form script I have. In some initial test code I've written, whenever I drop the session ID as a cookie using the following code:
print $query->header( -cookie=>$cookie );
I see the following text displayed on the top of the form in my browser:
Expires: Wed, 29 Aug 2007 02:47:18 GMT Date: Thu, 30 Aug 2007 02:47:18 GMT Cache: no Content-Type: text/html; charset=ISO-8859-1
My question: Is there any way to supress the printing of this text to the browser window when the cookie is set? I know CGI.pm is returning http headers when setting the cookie, but I figure there has to be a way to keep this from showing up on my user's forms, unless I'm missing something or misunderstanding.
Thanks for any help.