All,
I'm having some problem setting a cookie in a logon
script i have. The code work fine as a CGI, and also under mod)perl,
however, I want to set a cookie during the login script, and then redirect the
browser to another page. When I enter the code below into the mod_perl
script, the browser tries to download login.pl, rather than running it. If
I print the HTTP header to the screen, it looks fine, but it wont
run.
This code below works fine under normal CGI.
Any thoughts ?
use CGI;
use CGI::Cookie;
my $q = new CGI;
.......
my $cookie = new CGI::Cookie(-name =>
'testlogger', -value=> $UserID, -path => '/');
print $q->redirect(-uri=>'/perl/home.pl',
-nph=>'1', -cookie => $cookie);
.......
|
- Re: Cookies and redirection Adi
- Re: Cookies and redirection Doug MacEachern
- Re: Cookies and redirection Perrin Harkins
- Re: Cookies and redirection Robin Berjon
- Re: Cookies and redirection Perrin Harkins
- Re: Cookies and redirection Robin Berjon
- Re: Cookies and redirection Rodney Broom
- Re: Cookies and redirection Alex Menendez
- Re: Cookies and redirection Autarch
- Re: Cookies and redirection Wim Kerkhoff
- Re: Cookies and redirection Glen Small
- Re: Cookies and redirection darren chamberlain