Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
header..print header( -cookie => cookie(-name => 'Matrix', -value => param('username'), -expires => '+7d', -domain => 'webewebin.com' ) ); &header; &member_sec; &footer;
Having this code prints header twice but in the middle of both of them theres a 1, and the cookie isnt working. But if I just remove the cookie part it all looks fine so its something with the cookiesub header { print qq~ <html> <head> <title>Matrix System</title> <body link="0000FF" vlink="0000FF" alink="0000FF" text="00000"> <font face="arial"> <p> <b> <a href="index.cgi">Home</a> <a href="index.cgi?act=signup">Signup</a> <a href="index.cgi?act=member">Members</a> </b> </p> ~; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cookies messing up code
by Aristotle (Chancellor) on Oct 30, 2002 at 00:49 UTC | |
|
Re: Cookies messing up code
by chromatic (Archbishop) on Oct 30, 2002 at 03:23 UTC | |
|
Re: Cookies messing up code
by dws (Chancellor) on Oct 30, 2002 at 06:16 UTC |