more useful options | |
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re: Re: Re: The cookie crumbles
by Masem
|
|