Welcome to the Monastery | |
PerlMonks |
Re: Re: Re: The cookie crumblesby Masem (Monsignor) |
on Oct 24, 2001 at 15:42 UTC ( [id://121084]=note: print w/replies, xml ) | Need Help?? |
There might be a problem between setting a cookie followed by a redirect (I know, there shouldn't be one, but...). Try, instead of printing that redirect for the time being, print a simple page, to see if that part of the loop is even being seen.
Try to print to either the web page or to the log file the values of $menu and $name, ideally bracketed as in "--$name--", in case that your firewall might be adding extra characters to the end. If anything, try replacing the not-equal comparison with a regex ( if ( $name !~ /$cookie_name/ ) .... As for the script referencing, I would suggest that it's always better to let the cgi determine where it is than for you to specify it; that's one less place where a site setting could go amiss if you have to move servers. You can delete all the other CGI params except for name using: and then use the self_url to leave only the name param and the right script location. That (probably) won't fix your problem; it's only a style issue.
-----------------------------------------------------
In Section
Seekers of Perl Wisdom
|
|