jays01 has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for helpmy $session = session_header;#---by using CGI::Session; if ( $query->param("frmsubmit") ) { $uname = $query->param("uname"); $pwd = $query->param("pwd"); if ($uname eq "AA" && $pwd eq "AA") { $session->param( "usertype", 'admin' ); # store into the session: my $c = new CGI::Cookie(-name => 'plcuser',-value => 'admin', -expires + => '+20m'); print "Set-Cookie: $c\n"; print "Location: $rdurl\n\n"; #print $query->redirect($rdurl); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI PERL - session/cookie set up and redirect
by kwaping (Priest) on Jul 24, 2006 at 18:07 UTC | |
by jays01 (Initiate) on Jul 24, 2006 at 18:15 UTC | |
|
Re: CGI PERL - session/cookie set up and redirect
by rodion (Chaplain) on Jul 24, 2006 at 18:16 UTC | |
by jays01 (Initiate) on Jul 24, 2006 at 18:47 UTC |