LiTinOveWeedle has asked for the wisdom of the Perl Monks concerning the following question:
use CGI; $query = new CGI; ...................... $cookie = $query->cookie(-name => $cookie_name, -expires => $cookie_expires, -domain => $cookie_domain, -path => $cookie_path, -value=>{ username => $username, password => $crypt_password } ); print $query->header(-cookie=>[$cookie]); ...................... print $query->redirect( -location=>'http://my.domain.cz/', -method=> 'get' );
An here is IMHO problem. Because ther was already printed header, redirect in not functional. Is there any way how to both sen cookie and also redirect after it?
THX. Litin
Li Tin O've Weedle
mad Tsort's philosopher
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: CGI.pm: cookie AND redirect
by Ovid (Cardinal) on Mar 23, 2001 at 19:24 UTC | |
|
Re: CGI.pm: cookie AND redirect
by voyager (Friar) on Mar 22, 2001 at 06:19 UTC | |
by voyager (Friar) on Mar 22, 2001 at 06:20 UTC |