>
> This may be because $evalue !=3 and therefore the if block does not execute.
> You need to send the header in all cases. Try changing your if block to:
>
> if ( $evalue == 3 ) {
> my $cookie = $cgi->cookie(CGISESSID => $session->id);
> print $cgi->header( -cookie=>$cookie );
> deploy
On Wed, May 4, 2011 at 9:23 AM, Agnello George wrote:
> In my script i am using template toolkit. I am trying to set the
> cookie in my browser but all that it does is it prints the following
> output on my broswer :
>
> Set-Cookie: CGISESSID=f032fc8982a1ae022c4f51baa3bc4143; path=/ Date:
> Wed,
On 04/05/11 14:44, Agnello George wrote:
if i remvove this line for my script login.pl the web server log gives me
[Wed May 04 19:14:30 2011] [error] [client 192.168.2.94] malformed
header from script. Bad header=
This may be because $evalue !=3 and therefore the if block does not
execute. Y
On Wed, May 4, 2011 at 7:01 PM, Pete Smith wrote:
> Remove this line:
>
> print "Content-type: text/html\n\n";
if i remvove this line for my script login.pl the web server log gives me
[Wed May 04 19:14:30 2011] [error] [client 192.168.2.94] malformed
header from script. Bad header=>
>> my $c
Remove this line:
print "Content-type: text/html\n\n";
The $cgi->header call is also outputting the HTTP header, but you have
already created it with the line above. That is why you can see the
generated header in your browser.
If $evalue != 3 you may want to call $cgi->header without the co