hesco has asked for the wisdom of the Perl Monks concerning the following question:
I've written a logout form as follows:
I then call this, from a runmode as:sub logout_button { my $self = shift; my $q = $self->query(); my $output = ""; $output .= $q->start_form( -name => 'logout' ); $output .= $q->hidden(-name => 'authen_logout', -value => '1'); $output .= $q->submit(-value => 'logout'); $output .= $q->end_form(); return $output; }
Viewing source from a browser includes:$output .= $self->logout_button();
But when I try to logout now, expecting to see a new login form, I get instead, the following in the browser:<form method="post" action="/auth-test/dprnew2.cgi" enctype="multipart +/form-data" name="logout"> <input type="hidden" name="authen_logout" value="1" /> <input type="submit" name=".submit" value="logout" /> </form>
I'm also using CGI::Application::Plugin::Authorization. And suspect that may be to blame. But why would I be forbidden from seeing a login form when I've logged out?Forbidden You don't have permission to access / on this server. Apache/1.3.33 Ben-SSL/1.55 Server at 192.168.0.101 Port 443
-- Hugh
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $self->authen->logout();
by cees (Curate) on Mar 09, 2006 at 16:05 UTC | |
|
Re: $self->authen->logout();
by spiritway (Vicar) on Mar 09, 2006 at 05:46 UTC | |
|
Re: $self->authen->logout();
by hesco (Deacon) on Mar 09, 2006 at 19:21 UTC |