in reply to Re^3: cookie problem
in thread cookie problem
There are 2 things to be aware of when using print $q->redirect(-uri=>"home.pl", -cookie=>$cookie); as pointed out in the CGI documentation under Generating_a_redirection_header.
1) You should always use full URLs (including the http: or ftp: part) in redirection requests. Relative URLs will not work correctly.
2) All names arguments recognized by header() are also recognized by redirect(). However, most HTTP headers, including those generated by -cookie and -target, are ignored by the browser.
I take from those 2 comments that the results could be unpredictable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: cookie problem
by bigup401 (Pilgrim) on Nov 12, 2014 at 18:51 UTC | |
by fishmonger (Chaplain) on Nov 12, 2014 at 22:56 UTC | |
by bigup401 (Pilgrim) on Nov 13, 2014 at 09:37 UTC | |
by poj (Abbot) on Nov 13, 2014 at 09:41 UTC | |
by bigup401 (Pilgrim) on Nov 13, 2014 at 10:43 UTC | |
| |
by poj (Abbot) on Nov 12, 2014 at 19:16 UTC |