Thank you all for your efforts.
I just ran into another problem using the print redirect statement with the larger, more complex program. I'll keep looking in the other threads for a solution.
The redirection is not working and the cookie is not being set. The Status 302 message is written...
Building up the output, create a cookie, then doing the print stuff worked like magic on the less complicated program.
However, on the other program, where the cookie have to be done at a later time after some print statements, I think I'll try again the redirect statement. This time without...
You're right.
Now, I got a follow up question. I don't know if this should be on another thread about changing the values of a cookie.
The problem is the values for the cookie only become available near the end of the program. So, I can't delete the print header and the 2 other lines of code...
Thanks Kevin, it worked!
Now, if I may ask, what would be the equivalent of disabling the statement 'print "Content-type:text/html\n\n";' when the program structure looks like this:
my $query = new CGI;
print $query->header;
print $query->start_html (<title, etc>);
print...
Hello. I'm new here and I had just began using Perl CGI.
I'm trying to have a link from my website to another website which requires a cookie to be created in advance. I've been trying to do this with the minimum steps necessary. So far, I've been unsuccessful using the code below. The cookie...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.