Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cgi::application::plugin::redirect(3pm) [debian man page]

CGI::Application::Plugin::Redirect(3pm) 		User Contributed Perl Documentation		   CGI::Application::Plugin::Redirect(3pm)

NAME
CGI::Application::Plugin::Redirect - Easy external redirects in CGI::Application SYNOPSIS
package My::App; use CGI::Application::Plugin::Redirect; sub cgiapp_prerun { my $self = shift; if ( << not logged in >> ) { return $self->redirect('login.html'); } } sub byebye { my $self = shift; return $self->redirect('http://www.example.com/', '301 Moved Permanently'); } DESCRIPTION
This plugin provides an easy way to do external redirects in CGI::Application. You don't have to worry about setting headers or worrying about return types, as that is all handled for you. "redirect" does an external redirect, which means that the browser will receive a command to load a new page, and a fresh request will come in. If you just want to display the results of another runmode within the same module, then it is often sufficient to use the "forward" method in CGI::Application::Plugin::Forward instead. METHODS
redirect($url, $status) Interupt the current request, and redirect to an external URL. If you happen to be inside a prerun method when you call this, the current runmode will automatically be short circuited so that it will not execute. As soon as all prerun method have finished, the redirect will happen without the runmode being executed. The $status parameter is optional as the CGI module will default to something suitable. return $self->redirect('http://www.example.com/'); - or - return $self->redirect('http://www.example.com/', '301 Moved Permanently'); SEE ALSO
CGI::Application, CGI::Application::Plugin::Forward, perl(1) AUTHOR
Cees Hek <ceeshek@gmail.com> LICENCE AND COPYRIGHT
Copyright (c) 2005, Cees Hek. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED ORIMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSESSUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. perl v5.12.3 2011-06-25 CGI::Application::Plugin::Redirect(3pm)

Check Out this Related Man Page

CGI
::Application::Plugin::Authentication::Driver::AuthenUsermContributed PerlCGI::Application::Plugin::Authentication::Driver::Authen::Simple(3pm) NAME
CGI::Application::Plugin::Authentication::Driver::Authen::Simple - Authen::Simple Authentication driver VERSION
This document describes CGI::Application::Plugin::Authentication::Driver::Authen::Simple version 0.20 SYNOPSIS
use base qw(CGI::Application); use CGI::Application::Plugin::Authentication; __PACKAGE__->authen->config( DRIVER => [ 'Authen::Simple::Kerberos', realm => 'REALM.COMPANY.COM' ], ); DESCRIPTION
This driver allows you to use any modules that following the Authen::Simple API. All options that you provide will be passed on to the given Authen::Simple module. EXAMPLE
__PACKAGE__->authen->config( DRIVER => [ 'Authen::Simple::CDBI', class => 'MyApp::Model::User' ], ); METHODS
verify_credentials This method will test the provided credentials against the Authen::Simple module that was configured. SEE ALSO
CGI::Application::Plugin::Authentication::Driver, CGI::Application::Plugin::Authentication, perl(1) LICENCE AND COPYRIGHT
Copyright (c) 2006, SiteSuite. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. perl v5.12.3 2011-05-1CGI::Application::Plugin::Authentication::Driver::Authen::Simple(3pm)
Man Page